Skip to content

Commit

Permalink
Add a script to update the grml-live version string
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Dangel committed May 31, 2011
1 parent be3c863 commit 5c91ce9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions debian/update-grml-live-version
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c91ce9

Please sign in to comment.