base_pkg=bacula-$base_dir
remote=$3
branch=$4
-if [ $# != 4 ] ; then
- echo "Need $0 <bacula-source-directory> <docs-source-directory> <remote-name> <branch>"
- echo "e.g. $0 bacula-source docs-source bee master"
+ver=$5
+
+if [ $# != 5 ] ; then
+ echo "Need $0 <bacula-source-directory> <docs-source-directory> <remote-name> <branch> <version>"
+ echo "e.g. $0 bacula-source docs-source bee master 4.0.1"
exit 1
fi
cd $1
exit 1
fi
git pull ${remote} ${branch}
-ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${bsrc}/src/version.h`
fulltag=$tagbase$ver
echo " "
echo "Making $reltype for $base_pkg-$ver ..."
if [ a$push != ano ]; then
cd ${src}
git push ${remote} ${branch}
- git push ${remote} tag ${fulltag}
- echo "Pushed ${remote} and push tag ${fulltag}"
+# git push ${remote} tag ${fulltag}
+ echo "Pushed ${remote}"
fi
cd ${src}