mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
20 lines
425 B
Bash
Executable File
20 lines
425 B
Bash
Executable File
#!/bin/sh
|
|
if [ ! -d .git ]; then
|
|
echo "Run this script from the root of a git copy"
|
|
exit 1
|
|
fi
|
|
if [ ! -x sys/tarball.sh ]; then
|
|
echo "Run this script from the radare2 root directory"
|
|
exit 1
|
|
fi
|
|
V=`./configure -qV`
|
|
git clone . radare2-${V}
|
|
cd radare2-${V}
|
|
./preconfigure
|
|
rm -rf .git
|
|
find * | grep /.git$ | xargs rm -rf
|
|
cd ..
|
|
tar cJvf radare2-${V}.tar.xz radare2-${V}
|
|
zip -r radare2-${V}.zip radare2-${V}
|
|
rm -rf radare2-${V}
|