summaryrefslogtreecommitdiff
path: root/contrib/splicex/.configure
blob: 0a55ce49bed202402958583a25e7bf7b94699671 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
clear
echo -e "" 
echo -e "\033[1;31m                    __________        _ _         \033[1;33m__  __\033[1;31m    ______    \033[0;0m"
echo -e "\033[1;31m                   / / / / ___| _ __ | (_) ___ ___\033[1;33m\\ \\/ /\033[1;31m   / / / /  \033[0;0m"
echo -e "\033[1;31m                  / / / /\___ \| '_ \| | |/ __/ _ \\\\\033[1;33m\\\  /   \033[1;31m/ / / /\033[0;0m"
echo -e "\033[1;31m                 / / / /  ___) | |_) | | | (_|  __/\033[1;33m/  \\  \033[1;31m/ / / /     \033[0;0m"
echo -e "\033[1;31m                /_/_/_/  |____/| .__/|_|_|\\___\\___\033[1;33m/_/\\_\\\\\033[1;31m/_/_/_/ \033[0;0m"
echo -e "\033[1;31m                               |_|                                              \033[0;0m"
echo -e ""
echo -e "\033[1;33m                     .:Brute Force Utilities For GNU/Linux:.                   \033[0;0m"     
echo -e ""
echo -e ""
echo -e "       SpliceX is free software: you can redistribute it and/or modify it under "
echo -e "       the terms of the GNU General Public License as published by the Free     "
echo -e "       Software Foundation, either version 3 of the License, or (at your option)"
echo -e "       any later version.                                                       "
echo -e ""
echo -e "       SpliceX is distributed in the hope that it will be useful, but WITHOUT   "
echo -e "       ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    "
echo -e "       FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    "
echo -e "       for more details. <http://www.gnu.org/licenses/>                         "
echo -e ""
echo -e ""

if [[ $(id -u) != 0 ]]; then
 echo -e 'root privileges required...\033[1;31m FAILED\033[0;0m'
 exit 1
fi

sleep .3
echo -e '\033[1;33mCONFIGURE: \033[0;0m'
sleep .3
echo -ne 'checking for python'
sleep .3
echo -ne '.'
sleep .3
echo -ne '.'
sleep .3
echo -ne '.'
if which python >/dev/null; then
 sleep .3
 echo -ne '\033[1;32m OK\033[0;0m'
 echo
 sleep .3
else
 sleep .3
 echo -ne '\033[1;31m FAILED\033[0;0m'
 echo
 exit 1
fi

echo -ne 'checking for man'
sleep .3
echo -ne '.'
sleep .3
echo -ne '.'
sleep .3
echo -ne '.'
if which man >/dev/null; then
 sleep .3
 echo -ne '\033[1;32m OK\033[0;0m'
 echo
 sleep .3
else
 sleep .3
 echo -ne '\033[1;31m FAILED\033[0;0m'
 echo
 exit 1
fi

PYPATH=`which python`
echo  -ne "configuring splicex for $PYPATH"
sleep .3
echo -ne '.'
sleep .3
echo -ne '.'
sleep .3
echo -ne '.'
sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >src/splicex.cp || echo -ne '\033[1;31m FAILED\033[0;0m'
sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >src/splicex-deshadow.cp || echo -ne '\033[1;31m FAILED\033[0;0m'
echo -ne '\033[1;32m OK\033[0;0m'
echo -e ""
sleep .3
echo
echo -e '\033[1;33mINSTALL: \033[0;0m'
sleep .3