File: config

package info (click to toggle)
bacula 15.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,780 kB
  • sloc: ansic: 194,276; cpp: 41,177; sh: 28,258; python: 6,669; makefile: 5,275; perl: 3,666; sql: 1,371; java: 345; xml: 196; awk: 51; sed: 25
file content (54 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Configuration for release scripts
#
# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# Set to the Branch you are working on
#
branch=${branch:-Branch-11.0}
#
# set reltype to release or beta -- for upload and setting DEVELOPER
reltype=release

repo=$reltype

# Bacula git repos
drivers=${drivers:-${HOME}/bacula/drivers}
bacula=${bacula:-${HOME}/bacula/k}
docs=${docs:-${HOME}/bacula/docs}

# Limit bw to upload on the website
max_bw=${max_bw:-80}
upload_opt="--bwlimit=$max_bw"

#
# Set the following to your remote name.  By default it is origin.
remote=bs

export push=no
#
# Note, you will probably want to set updatepo=no if you
#   run this script multiple times for a given release.
export 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} >/dev/null 2>&1
git pull ${remote} ${branch} >/dev/null 2>&1
if [ $? -ne 0 ]; then
   echo "Checkout or Pull of branch ${branch} failed."
   exit 1
fi
ver=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' src/version.h`
lsmdate=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' src/version.h`

git checkout $current >/dev/null 2>&1

cd $cwd