2 # Configuration for release scripts
4 # Copyright (C) 2000-2017 Kern Sibbald
5 # License: BSD 2-Clause; see file LICENSE-FOSS
7 # Set to the Branch you are working on
9 branch=${branch:-Branch-7.9}
11 # set reltype to release or beta -- for upload and setting DEVELOPER
17 bacula=${bacula:-${HOME}/bee/bacula}
18 docs=${docs:-${HOME}/bacula/docs}
20 # Limit bw to upload on the website
22 upload_opt="--bwlimit=$max_bw"
25 # Set the following to your remote name. By default it is origin.
30 # Note, you will probably want to set updatepo=no if you
31 # run this script multiple times for a given release.
38 echo "Directory: $1 does not exist"
41 current=`git branch | awk '/*/ { print $2 }'`
42 git checkout ${branch} >/dev/null 2>&1
43 git pull ${remote} ${branch} >/dev/null 2>&1
45 echo "Checkout or Pull of branch ${branch} failed."
48 ver=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' src/version.h`
49 lsmdate=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' src/version.h`
51 git checkout $current >/dev/null 2>&1