X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=scripts%2Frelease_helper.sh;h=d5c21c2f852e08e10fdf383e4843e1aa538e9695;hp=1bc6ffa7d8988e94e225a4eb0c981f4bfa55a447;hb=5a8f565107dc2eab1205190c615f3d43994b0d08;hpb=c6bcaeb5c892666d0fc1b04b67dffbb7f50eb7e0 diff --git a/scripts/release_helper.sh b/scripts/release_helper.sh index 1bc6ffa..d5c21c2 100755 --- a/scripts/release_helper.sh +++ b/scripts/release_helper.sh @@ -5,21 +5,6 @@ # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. ################################################################################ -## How to set up autobuild (for automatically updating grml-live.git and -## build packages out of git tree and install them, e.g. for usage on -## daily.grml.org): -# echo "deb file:/home/grml-live-git/grml-live.build-area/ ./" >> /etc/apt/sources.list.d/grml-live.list -# adduser --disabled-login --disabled-password grml-live-git -# visudo -> add "grml-live-git ALL=NOPASSWD: /usr/bin/apt-get" -# su - grml-live-git -# mkdir /home/grml-live-git/grml-live.build-area -# git clone git://git.grml.org/grml-live.git -# git config --global user.name "Grml-Live Git Autobuild" -# git config --global user.email "grml-live-git@$(hostname)" -# -# Finally install a cron job (as user grml-live-git) like: -# 30 00 * * * cd /home/grml-live-git/grml-live.git/ && env AUTOBUILD=1 /home/grml-live-git/release_helper.sh >/home/grml-live-git/grml-live-build.log -################################################################################ set -e set -u @@ -55,9 +40,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,6 +95,7 @@ fi printf "Building debian packages:\n" if [ -n "${AUTOBUILD:-}" ] ; then [ -d ../grml-live.build-area ] || mkdir ../grml-live.build-area + 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 $* @@ -118,6 +106,7 @@ if [ -n "${AUTOBUILD:-}" ] ; then ( cd ../grml-live.build-area dpkg-scanpackages . /dev/null > Packages + dpkg-scanpackages . /dev/null | gzip > Packages.gz ) git checkout master git branch -D ${autobuild_branch} || true