]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/release/pushtags
Fix bug #2293 bad big endian detection in lz4.c
[bacula/bacula] / bacula / release / pushtags
index 4ec85e1bb490d995020565841519b961fd6a5e68..07fd59212235b98b4afbe4c1575bce83b82d7181 100755 (executable)
@@ -1,22 +1,32 @@
 #!/bin/sh
 #
+# Copyright (C) 2000-2015 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
 
-for i in $bacula $docs ; do
-  cd $i
-  current=`git branch | awk '/*/ { print $2 }'`
-  git checkout ${branch}
-  git push ${remote} ${branch}
-  git push ${remote} tag ${fulltag}
-  echo "Pushed ${remote} and git push ${remote} tag ${fulltag} in $i"
-  git checkout ${current}
-done
+# Push to both remotes
+push ${remote}
+push bacula