annotate contrib/splicex/.configure @ 695:24a6ba1d8657 draft

SpliceX Changes
author d3v11 <d3v11@d3v11.ano>
date Mon, 24 Oct 2011 17:25:51 -0500
parents 2e33b56d4f0d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
1 #!/bin/bash
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
2 clear
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
3 echo -e ""
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
4 echo -e "\033[1;31m __________ _ _ \033[1;33m__ __\033[1;31m ______ \033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
5 echo -e "\033[1;31m / / / / ___| _ __ | (_) ___ ___\033[1;33m\\ \\/ /\033[1;31m / / / / \033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
6 echo -e "\033[1;31m / / / /\___ \| '_ \| | |/ __/ _ \\\\\033[1;33m\\\ / \033[1;31m/ / / /\033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
7 echo -e "\033[1;31m / / / / ___) | |_) | | | (_| __/\033[1;33m/ \\ \033[1;31m/ / / / \033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
8 echo -e "\033[1;31m /_/_/_/ |____/| .__/|_|_|\\___\\___\033[1;33m/_/\\_\\\\\033[1;31m/_/_/_/ \033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
9 echo -e "\033[1;31m |_| \033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
10 echo -e ""
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
11 echo -e "\033[1;33m .:Brute Force Utilities For GNU/Linux:. \033[0;0m"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
12 echo -e ""
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
13 echo -e ""
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
14 echo -e " SpliceX is free software: you can redistribute it and/or modify it under "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
15 echo -e " the terms of the GNU General Public License as published by the Free "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
16 echo -e " Software Foundation, either version 3 of the License, or (at your option)"
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
17 echo -e " any later version. "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
18 echo -e ""
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
19 echo -e " SpliceX is distributed in the hope that it will be useful, but WITHOUT "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
20 echo -e " ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
21 echo -e " FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
22 echo -e " for more details. <http://www.gnu.org/licenses/> "
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
23 echo -e ""
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
24 echo -e ""
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
25
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
26 if [[ $(id -u) != 0 ]]; then
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
27 echo -e 'root privileges required...\033[1;31m FAILED\033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
28 exit 1
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
29 fi
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
30
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
31 sleep .3
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
32 echo -e '\033[1;33mCONFIGURE: \033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
33 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
34 echo -ne 'checking for python'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
35 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
36 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
37 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
38 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
39 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
40 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
41 if which python >/dev/null; then
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
42 sleep .3
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
43 echo -ne '\033[1;32m OK\033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
44 echo
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
45 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
46 else
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
47 sleep .3
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
48 echo -ne '\033[1;31m FAILED\033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
49 echo
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
50 exit 1
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
51 fi
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
52
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
53 echo -ne 'checking for man'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
54 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
55 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
56 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
57 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
58 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
59 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
60 if which man >/dev/null; then
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
61 sleep .3
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
62 echo -ne '\033[1;32m OK\033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
63 echo
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
64 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
65 else
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
66 sleep .3
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
67 echo -ne '\033[1;31m FAILED\033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
68 echo
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
69 exit 1
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
70 fi
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
71
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
72 PYPATH=`which python`
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
73 echo -ne "configuring splicex for $PYPATH"
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
74 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
75 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
76 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
77 echo -ne '.'
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
78 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
79 echo -ne '.'
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
80 sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >src/splicex.cp || echo -ne '\033[1;31m FAILED\033[0;0m'
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
81 sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >src/splicex-deshadow.cp || echo -ne '\033[1;31m FAILED\033[0;0m'
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
82 echo -ne '\033[1;32m OK\033[0;0m'
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
83 echo -e ""
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
84 sleep .3
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
85 echo
695
24a6ba1d8657 SpliceX Changes
d3v11 <d3v11@d3v11.ano>
parents: 688
diff changeset
86 echo -e '\033[1;33mINSTALL: \033[0;0m'
688
2e33b56d4f0d SpliceX improvements
resdb <resdb@d3v11-VM.(none)>
parents:
diff changeset
87 sleep .3