mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-17 04:39:36 +00:00
Add sys/release.sh
This commit is contained in:
parent
545efb319b
commit
8c6ddc6375
16
sys/release.sh
Executable file
16
sys/release.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user