From f6aae889e06fed8a081078d7686af49de9fb225d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 21 Jan 2010 18:57:57 +0100 Subject: [PATCH] Tweak release script, add push=yes/no to update origin --- bacula/release/makeall | 1 + bacula/release/makebacularel | 8 +++++--- bacula/release/makedocsrel | 8 +++++--- bacula/release/makerescuerel | 8 +++++--- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/bacula/release/makeall b/bacula/release/makeall index aea044cfcc..5721d5453e 100755 --- a/bacula/release/makeall +++ b/bacula/release/makeall @@ -8,6 +8,7 @@ branch=5.0.0 bacula=/home/kern/bacula/k docs=/home/kern/bacula/docs rescue=/home/kern/bacula/rescue +push=yes ./makeclean ./makebacularel $bacula $branch diff --git a/bacula/release/makebacularel b/bacula/release/makebacularel index eecec64404..90da20b3cb 100755 --- a/bacula/release/makebacularel +++ b/bacula/release/makebacularel @@ -96,6 +96,8 @@ cd .. ./sign $base_pkg-gui-$ver.tar.gz ./sign $base_pkg-regress-$ver.tar.gz -cd ${src} -git push -git push --tags +if [ a$push != ano ]; then + cd ${src} + git push + git push --tags +fi diff --git a/bacula/release/makedocsrel b/bacula/release/makedocsrel index a3a0bcf85d..a8702a16fe 100755 --- a/bacula/release/makedocsrel +++ b/bacula/release/makedocsrel @@ -104,6 +104,8 @@ bzip2 $base_pkg-$ver.tar ./sign $base_pkg-$ver.tar.bz2 ls -l $base_pkg-$ver.tar.* -cd ${src} -git push -git push --tags +if [ a$push != ano ]; then + cd ${src} + git push + git push --tags +fi diff --git a/bacula/release/makerescuerel b/bacula/release/makerescuerel index 97cbfd0e0e..789b36c333 100755 --- a/bacula/release/makerescuerel +++ b/bacula/release/makerescuerel @@ -72,6 +72,8 @@ cd ${cwd} ./sign $base_pkg-$ver.tar.gz ls -l $base_pkg-$ver.tar.* -cd ${src} -git push -git push --tags +if [ a$push != ano ]; then + cd ${src} + git push + git push --tags +fi -- 2.39.5