X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=debian%2Fupdate-grml-live-version;fp=debian%2Fupdate-grml-live-version;h=ccc82748d9199e1b46f4bb3228e859e4abc60e24;hp=0000000000000000000000000000000000000000;hb=5c91ce99edb4fb49346f5a5f5132a8a56a2e2c9d;hpb=be3c8633855b8ca0ae6af5003d598979f91e34ad diff --git a/debian/update-grml-live-version b/debian/update-grml-live-version new file mode 100755 index 0000000..ccc8274 --- /dev/null +++ b/debian/update-grml-live-version @@ -0,0 +1,14 @@ +#!/bin/sh +if [ ! -e ./grml-live ] || [ ! -d debian ] ; then + echo "Not a grml-live repo!" >&2 + exit 1 +fi +if [ $# -ne 0 ] ; then + echo "Usage: $0" >&2 + echo "This script updates the version used in grml-live to the debian/changelog!" >&2 + exit 1 +fi + +version=$(dpkg-parsechangelog | awk '/^Version:/ {print $2}') +sed -i 's/^\(GRML_LIVE_VERSION=.\).*\(.\)\s*$/\1'$version'\2/' grml-live +