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
|
#!/bin/sh
#
# Copyright (C) 2000-2017 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# Push tags
#
. ./config
push()
{
for i in $bacula $docs ; do
cd $i
current=`git branch | awk '/*/ { print $2 }'`
git checkout ${branch}
git push ${1} ${branch}
git push ${1} tag ${fulltag}
echo "Pushed ${1} and git push ${1} tag ${fulltag} in $i"
git checkout ${current}
done
}
echo "Updating repo and tags for release version: ${ver}"
cd $cwd
fulltag=Release-$ver
# Push to both remotes
push ${remote}
push bacula
|