X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-release;h=22035f8ae5797901e071e36276d6ed54710915c4;hb=839efe6d8548bf2453b282bd49cf1deca4ad079f;hp=71a45043ed450c2a9422d0df1f0df430f157a313;hpb=b86ba20b14afdabae82a1c64cb525000475e199a;p=git-tools-moved-to-github.git diff --git a/id-release b/id-release index 71a4504..22035f8 100755 --- a/id-release +++ b/id-release @@ -16,20 +16,38 @@ usage () { exit 1 } +branch_check () { + if ! git branch | egrep -q '^\* master$'; then + ( echo ">>> Warning: you are not running on the master branch <<<" + git branch; echo ) 1>&2 + fi +} + ###################################################################### +branch_check + case $1 in [0-9]* ) version=$1 ;; * ) usage ;; esac -echo "See also https://twiki.indexdata.com/twiki/bin/view/ID/AdamsReleaseProcedure" -echo "" -echo "Did you updated the news log file?" + +cat < mvn-versions.log fi if $perl; then - echo "check perl version numbers" - find . -name '*.pm' -print0 | xargs -0 egrep -H '\$VERSION.*=.*[0-9]' | egrep -v '^\./deb-src/' + echo "# check perl version numbers" + find . -name '*.pm' -print0 | xargs -0 egrep -H '\$VERSION.*=.*[0-9]' | + egrep -v '^\./deb-src/' | perl -npe 's,^,# ,' fi # update debian version file @@ -99,3 +118,5 @@ echo "# if successfully, don't forget to push to origin" echo "git push origin master" echo "git push origin tag v$version" +# EOF +