X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Frelease_helper.sh;h=b5cd99d5008880a1a0081ed093a050a963ddeb27;hb=d0a25f748a39de2d03c421eefbf0938ee09a20a2;hp=cbd910b6529d73cabdf487df4136bb225d1cd803;hpb=307773cc75be42af5f2fa3f587c4e525a7353b78;p=grml-live.git diff --git a/scripts/release_helper.sh b/scripts/release_helper.sh index cbd910b..b5cd99d 100755 --- a/scripts/release_helper.sh +++ b/scripts/release_helper.sh @@ -19,6 +19,16 @@ # # Finally install a cron job (as user grml-live-git) like: # 30 00 * * * cd /home/grml-live-git/grml-live.git/ && env AUTOBUILD=1 scripts/release_helper.sh >/home/grml-live-git/grml-live-build.log +# +# Tip: To find out the build date of the installed grml-live package just run: +# +# % apt-cache policy grml-live | grep 'Installed.*autobuild' +# Installed: 0.13.1~autobuild1300450381 +# +# and run "date -ud @$STRING" where $STRING is the number +# behind the "autobuild", like: +# % date -ud @1300450081 +# Fri Mar 18 12:08:01 UTC 2011 ################################################################################ set -e @@ -55,9 +65,11 @@ grml-live (${GRML_LIVE_VERSION}~autobuild${UNIXTIME}) UNRELEASED; urgency=low * Automatically built package based on the state of git repository at http://git.grml.org/?p=grml-live.git - on $DATE + on $DATE -> + + $(git log --format=oneline -1) - -- grml-live Auto Build $DATE + -- grml-live Auto Build $DATE EOF git add debian/changelog @@ -108,7 +120,7 @@ fi printf "Building debian packages:\n" if [ -n "${AUTOBUILD:-}" ] ; then [ -d ../grml-live.build-area ] || mkdir ../grml-live.build-area - rm -f ../grml-live.build-area/grml-live* # otherwise we're keeping files forever... + rm -rf ../grml-live.build-area/grml-live* # otherwise we're keeping files forever... git-buildpackage --git-ignore-branch --git-ignore-new --git-export-dir=../grml-live.build-area -us -uc else git-buildpackage --git-ignore-branch --git-ignore-new $*