-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathautogen.sh
executable file
·45 lines (43 loc) · 923 Bytes
/
autogen.sh
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
#!/bin/sh
#
# Look for the 'acr' tool here: https://github.com/radare/acr
# Clone last version of ACR from here:
# git clone https://github.com/radare/acr
#
# -- pancake
#!/bin/sh
#
# Look for the 'acr' tool here: https://github.com/radare/acr
# Clone last version of ACR from here:
# git clone https://github.com/radare/acr
#
# -- pancake
r2pm -h >/dev/null 2>&1
if [ $? = 0 ]; then
echo "Installing the last version of 'acr'..."
r2pm -i acr > /dev/null
r2pm -r acr -h > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Running 'acr -p'..."
r2pm -r acr -p
else
echo "Cannot find 'acr' in PATH"
fi
else
echo "Running acr..."
acr -p
fi
V=`./configure -qV | cut -d - -f -1`
if [ -n "$1" ]; then
echo "./configure $*"
./configure $*
fi
files=`find . -name configure.acr`
for a in ${files}; do
echo "[+] $a"
( cd `dirname $a` ; r2pm -r acr -p )
done
if [ -n "$1" ]; then
echo "./configure $@"
./configure $@
fi