2009-04-03 11:11:17 +00:00
|
|
|
#!/bin/sh
|
2009-09-07 20:01:34 +00:00
|
|
|
#
|
2014-09-12 17:37:59 +04:00
|
|
|
# Look for the 'acr' tool here: https://github.com/radare/acr
|
2009-09-07 20:01:34 +00:00
|
|
|
# Clone last version of ACR from here:
|
2014-09-12 17:37:59 +04:00
|
|
|
# git clone https://github.com/radare/acr
|
2009-09-07 20:01:34 +00:00
|
|
|
#
|
|
|
|
|
# -- pancake
|
2018-10-16 00:28:51 +02:00
|
|
|
|
|
|
|
|
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'..."
|
2025-07-30 16:21:20 +02:00
|
|
|
r2pm -r acr -p || exit 1
|
2018-10-16 00:28:51 +02:00
|
|
|
else
|
|
|
|
|
echo "Cannot find 'acr' in PATH"
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
echo "Running acr..."
|
2025-07-30 16:21:20 +02:00
|
|
|
acr -p || exit 1
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
if [ -d subprojects ]; then
|
|
|
|
|
cd subprojects || exit 1
|
|
|
|
|
sh autogen.sh
|
|
|
|
|
cd ..
|
2018-10-16 00:28:51 +02:00
|
|
|
fi
|
2021-03-11 12:39:47 +01:00
|
|
|
V=`./configure -qV | cut -d - -f -1`
|
2021-02-21 01:51:08 +01:00
|
|
|
meson rewrite kwargs set project / version "$V"
|
2011-04-20 13:56:58 +02:00
|
|
|
if [ -n "$1" ]; then
|
2015-04-17 22:11:53 +02:00
|
|
|
echo "./configure $*"
|
2015-04-29 10:41:18 +02:00
|
|
|
./configure $*
|
2011-04-20 13:56:58 +02:00
|
|
|
fi
|
2021-09-20 13:24:50 +02:00
|
|
|
|
|
|
|
|
[ -z "$EDITOR" ] && EDITOR=vim
|
|
|
|
|
$EDITOR README.md
|
2026-03-08 09:31:26 +01:00
|
|
|
$EDITOR sys/install-debs.sh
|
2025-12-19 23:02:30 +01:00
|
|
|
$EDITOR dist/rpm/radare2.spec
|
2022-02-26 01:42:28 +01:00
|
|
|
$EDITOR dist/npm/package.json
|
2026-07-08 15:48:13 +05:30
|
|
|
$EDITOR dist/nix/package.nix
|
2024-04-01 14:07:14 +02:00
|
|
|
for a in dist/wapm/*/*.toml ; do
|
|
|
|
|
$EDITOR $a
|
|
|
|
|
done
|