Add new_tag.sh file

This commit is contained in:
Manfred Karrer 2015-03-28 23:31:33 +01:00
parent aa1e141900
commit 6e644ae2b7

21
doc/new_tag.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
cd /Users/mk/Documents/_intellij/bitsquare
git reset --hard
git remote add upstream https://github.com/bitsquare/bitsquare.git
git checkout master
git pull upstream master
git push origin master
git checkout published
git reset --hard master
export COMMITHASH=$(git log --oneline -1 | cut -d" " -f1)
echo $COMMITHASH
git grep -l 0.1.3-SNAPSHOT | xargs perl -p -i -e "s/0.1.3-SNAPSHOT/0.1.3.$COMMITHASH-SNAPSHOT/"
git commit -am"Qualify pom version for publication"
mvn clean install -DskipTests
git tag bitsquare-published-$COMMITHASH published
git push -f origin published
git push --tags