Skip to content

Commit a071205

Browse files
committed
Start script for #1404
1 parent 8c76450 commit a071205

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/release.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Called with a single parameter in the form "alpha.XX" or "beta.A"
4+
MINPARAMS=1
5+
6+
if [ $# -lt "$MINPARAMS" ]
7+
then
8+
echo
9+
echo "This script needs at least $MINPARAMS command-line arguments!"
10+
exit 0
11+
fi
12+
13+
VERSION="v5.0-$1"
14+
echo $VERSION
15+
16+
git checkout master
17+
rm LATEST_TAG.txt
18+
echo $VERSION >> LATEST_TAG.txt
19+
git add LATEST_TAG.txt
20+
echo "git commit -m \"Tagged release $VERSION\""
21+
echo "git push origin master"
22+
echo "git tag -a $VERSION -m \"Release $VERSION\""
23+
echo "git push --tags"

0 commit comments

Comments
 (0)