Skip to content

Commit

Permalink
Install acr if not installed when autogening
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Apr 26, 2022
1 parent caee604 commit 64b8154
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,39 @@
# 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` ; acr -p )
( cd `dirname $a` ; r2pm -r acr -p )
done
if [ -n "$1" ]; then
echo "./configure $@"
Expand Down

0 comments on commit 64b8154

Please sign in to comment.