Skip to content

Commit d9ab2d8

Browse files
committed
Bash script to help with releases
1 parent 45edcae commit d9ab2d8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build/release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
if [ -z "$1" -o -z "$2" ]; then
3+
echo "Needs to be called with two arguments, current and next version: ./build/release.sh 1.9.0 2.0.0pre"
4+
exit 1
5+
fi
6+
echo $1 > version.txt
7+
git add version.txt
8+
git commit -m "Tagging $1 release"
9+
git tag $1
10+
echo "Running ant"
11+
ant
12+
13+
echo "Bumping version to $2"
14+
echo $2 > version.txt
15+
git add version.txt
16+
git commit -m "Bumping version to $2"

0 commit comments

Comments
 (0)