Release new version 0.22.0
[grml-live.git] / debian / update-grml-live-version
1 #!/bin/sh
2 if [ ! -e ./grml-live ] || [ ! -d debian ] ; then
3     echo "Not a grml-live repo!" >&2
4     exit 1
5 fi
6 if [ $# -ne 0 ] ; then
7     echo "Usage: $0" >&2
8     echo "This script updates the version used in grml-live to the debian/changelog!" >&2
9     exit 1
10 fi
11
12 version=$(dpkg-parsechangelog | awk '/^Version:/ {print $2}')
13 sed -i 's/^\(GRML_LIVE_VERSION=.\).*\(.\)\s*$/\1'$version'\2/' grml-live
14