mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 19:47:31 +00:00
17 lines
349 B
Bash
Executable File
17 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
V=$1
|
|
if [ -z "$V" ]; then
|
|
echo "Usage: sys/release.sh 3.2.0"
|
|
exit 1
|
|
fi
|
|
git tag | grep -q $V
|
|
if [ $? = 0 ]; then
|
|
echo "Already tagged. Use git tag -d $V"
|
|
exit 1
|
|
fi
|
|
sed -e 's,^VERSION.*,VERSION '$V',' < configure.acr > configure.acr.tmp
|
|
mv configure.acr.tmp configure.acr
|
|
sh autogen.sh
|
|
git commit -a -m "Release $V" || exit 1
|
|
git tag $V
|