From ffc122be650738d0b3f71e07684cf68016234cae Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Thu, 15 Dec 2011 18:06:42 +0100 Subject: [PATCH] Update version in grml-live during Debian package build --- debian/rules | 3 ++- grml-live | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 0d9a343..36516e3 100755 --- a/debian/rules +++ b/debian/rules @@ -16,7 +16,7 @@ build: build-stamp build-stamp: dh_testdir - grep -q "GRML_LIVE_VERSION=.${VERSION}" grml-live || \ + egrep -q "GRML_LIVE_VERSION=.*UNRELEASED" grml-live || \ (echo "Wrong version in grml-live" && exit 2) cd docs && $(MAKE) && cd ../ touch $@ @@ -46,6 +46,7 @@ grml-live: install dh_installdocs -p$@ -P$(b)/$@ dh_installchangelogs -p$@ -P$(b)/$@ dh_install -p$@ -P$(b)/$@ + sed -i -e "s/GRML_LIVE_VERSION='\*\*\*UNRELEASED\*\*\*'/GRML_LIVE_VERSION='$(VERSION)'/" $(b)/$@/usr/sbin/grml-live dh_strip -p$@ -P$(b)/$@ dh_compress -p$@ -P$(b)/$@ mkdir -p $(b)/$(@)/usr/share/lintian/overrides/ diff --git a/grml-live b/grml-live index 3044fc3..528a5c4 100755 --- a/grml-live +++ b/grml-live @@ -23,8 +23,10 @@ fi # disable for now since it seems to cause some problems # set -e +# The line following this line is patched by debian/rules. +GRML_LIVE_VERSION='***UNRELEASED***' + # global variables -GRML_LIVE_VERSION='0.17.0+autobuild1323909002' PN="$(basename $0)" CMDLINE="$0 $@" ADDONS_LIST_FILE='/boot/isolinux/addons_list.cfg' -- 2.1.4