File: release.sh

package info (click to toggle)
radare2 6.0.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,360 kB
  • sloc: ansic: 903,263; sh: 8,137; javascript: 7,911; makefile: 5,503; python: 2,730; cpp: 789; perl: 404; lisp: 122; sed: 85; asm: 57; cs: 37; xml: 32; ruby: 29; java: 21
file content (16 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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