X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=36516e38adbf75d211b5c5c69fb6c71c4d98e047;hp=0d9a3439e54d37124d5212b91398bb73bf33dcb4;hb=ffc122be650738d0b3f71e07684cf68016234cae;hpb=4161d3c766e2a0c5a658bfb78f7496f895998d7c 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/