4 echo "usage $0 version"
8 if [ -e "pom.xml" ]; then
14 if [ `find . -name '*.pm' | wc -l` -gt 0 ]; then
20 if [ `ls |egrep '\.spec$' | wc -l` -eq 0 ]; then
21 echo "No *.spec file found"
24 package=`ls |egrep '\.spec$' | head -1`
28 [0-9]* ) version=$1 ;;
32 # configure new version
33 perl -i.bak -npe "s,VERSION=.*,VERSION=$version," IDMETA
36 echo "set maven version to $version"
37 mvn versions:set -DnewVersion=$version > mvn-versions.log
41 echo "check perl version numbers"
42 find . -name '*.pm' -print0 | xargs -0 egrep -H '\$VERSION.*=.*[0-9]'
45 # update debian version file
46 perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog
48 ######################################################################
50 echo "# Please run now"
53 echo "git tag v$version"
54 echo "git push origin tag v$version"
57 echo "mvn versions:set -DnewVersion=$version-SNAPSHOT"