]> git.sur5r.net Git - bacula/bacula/blob - bacula/release/pushtags
baculum: Add removing single resource
[bacula/bacula] / bacula / release / pushtags
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 # Push tags
7 #
8
9 . ./config
10
11 push()
12 {
13   for i in $bacula $docs ; do
14     cd $i
15     current=`git branch | awk '/*/ { print $2 }'`
16     git checkout ${branch}
17     git push ${1} ${branch}
18     git push ${1} tag ${fulltag}
19     echo "Pushed ${1} and git push ${1} tag ${fulltag} in $i"
20     git checkout ${current}
21   done
22 }
23
24 echo "Updating repo and tags for release version: ${ver}"
25
26 cd $cwd
27
28 fulltag=Release-$ver
29
30 # Push to both remotes
31 push ${remote}
32 push bacula