]> git.sur5r.net Git - bacula/bacula/blob - bacula/release/config
Require correct Qt version to build bat
[bacula/bacula] / bacula / release / config
1 #
2 # Configuration for release scripts
3
4 #
5 # Set to the Branch you are working on
6 #
7 branch=Branch-5.2
8
9 # set reltype to release or beta -- for upload and setting DEVELOPER
10 reltype=release
11
12
13 repo=$reltype
14
15 # Bacula git repos
16 bacula=${bacula:-${HOME}/bacula/k}
17 docs=${docs:-${HOME}/bacula/docs}
18 gpgkey=${gpgkey:-bacula}
19
20 #
21 # Set the following to your remote name.  By default it is origin.
22 remote=${remote:-origin}
23 push=no
24
25 #
26 # Note, you will probably want to set updatepo=no if you
27 #   run this script multiple times for a given release.
28 updatepo=no
29
30 cwd=`pwd`
31
32 cd ${bacula}/bacula
33 if [ $? -ne 0 ]; then
34    echo "Directory: $1 does not exist"
35    exit 1
36 fi
37 current=`git branch | awk '/*/ { print $2 }'`
38 git checkout ${branch}
39 git pull ${remote} ${branch}
40 if [ $? -ne 0 ]; then
41    echo "Checkout of branch ${branch} failed."
42    exit 1
43 fi
44 ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h`
45 lsmdate=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' src/version.h`
46
47 git checkout ${current}
48 export push
49 export updatepo
50 export gpgkey
51
52 cd $cwd