[prev in list] [next in list] [prev in thread] [next in thread]
List: bacula-commits
Subject: [Bacula-commits] git: Bacula branch, Branch-5.0,
From: "Kern Sibbald" <kerns () users ! sourceforge ! net>
Date: 2010-08-05 19:21:54
Message-ID: E1Oh60p-0001ex-Lv () sfp-scmshell-1 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Bacula".
The branch, Branch-5.0 has been updated
via fb469c80dbcc01d0c9bf0f23892776861cb4d8c1 (commit)
from 942e7a3149f227e3243103711896fdb20f566fa9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fb469c80dbcc01d0c9bf0f23892776861cb4d8c1
Author: Kern Sibbald <kern@sibbald.com>
Date: Thu Aug 5 18:26:17 2010 +0200
Tweak release script
-----------------------------------------------------------------------
Summary of changes:
diff --git a/bacula/release/makebacularel b/bacula/release/makebacularel
index 467162e..eca9b55 100755
--- a/bacula/release/makebacularel
+++ b/bacula/release/makebacularel
@@ -25,9 +25,8 @@ if [ $# != 4 ] ; then
echo "e.g. $0 release-source bee 4.0 4.0.1"
exit 1
fi
-cd $1
-check_return_code "$0: Directory $1 does not exist"
-cd bacula
+
+cd $1/bacula
check_return_code "$0: Directory $1/bacula does not exist"
src=`pwd`
current=`git branch | awk '/*/ { print $2 }'`
@@ -60,24 +59,14 @@ fi
git tag -d ${fulltag} 2>/dev/null 1>/dev/null
echo "Creating new tag -- $fulltag"
git tag $fulltag
-if [ $? != 0 ] ; then
- echo " "
- echo "makebacularel: Non-zero return status from Git"
- echo " "
- exit 1
-fi
-echo "Create Tag $fulltag done"
+check_return_code "$0: Non-zero return status from git tag"
+echo "$0: Create Tag $fulltag done"
cd ${cwd}
rm -rf $base_pkg-$ver $base_pkg-$ver.tar.gz $base_pkg-$ver.tar.gz.sig
rm -rf $fulltag
-cd ${src}
+cd $1
git archive --format=tar --prefix=$base_pkg-$ver/ $fulltag | gzip >${cwd}/$base_pkg-$ver.tar.gz
-if [ $? != 0 ] ; then
- echo " "
- echo "makebacularel: Non-zero return status from Git"
- echo " "
- exit 1
-fi
+check_return_code "$0: Non-zero return status from git archive"
echo "Exported release into ${cwd}/$base_pkg-$ver.tar.gz"
cd ${cwd}
tar xfz $base_pkg-$ver.tar.gz
@@ -101,6 +90,6 @@ if [ a$push != ano ]; then
echo "Pushed ${remote}"
fi
-cd ${src}
+cd $1
git checkout ${current}
exit 0
hooks/post-receive
--
Bacula
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Bacula-commits mailing list
Bacula-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic