# # Configuration for release scripts # # Set to the Branch you are working on # branch=Branch-5.2 # # set reltype to release or beta -- for upload and setting DEVELOPER reltype=release repo=$reltype # Bacula git repos bacula=${bacula:-${HOME}/bacula/k} docs=${docs:-${HOME}/bacula/docs} gpgkey=${gpgkey:-bacula} # # Set the following to your remote name. By default it is origin. remote=${remote:-origin} push=no # # Note, you will probably want to set updatepo=no if you # run this script multiple times for a given release. updatepo=no cwd=`pwd` cd ${bacula}/bacula if [ $? -ne 0 ]; then echo "Directory: $1 does not exist" exit 1 fi current=`git branch | awk '/*/ { print $2 }'` git checkout ${branch} git pull ${remote} ${branch} if [ $? -ne 0 ]; then echo "Checkout of branch ${branch} failed." exit 1 fi ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h` lsmdate=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' src/version.h` git checkout ${current} export push export updatepo export gpgkey cd $cwd