From 5c91ce99edb4fb49346f5a5f5132a8a56a2e2c9d Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Tue, 31 May 2011 12:40:53 +0200 Subject: [PATCH 1/1] Add a script to update the grml-live version string As we test for the grml-live version string this script sets the version string to the one specified in the latest changelog entry. This should only be used for auto builds. --- debian/update-grml-live-version | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 debian/update-grml-live-version 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 + -- 2.1.4