2 if [ ! -e ./grml-live ] || [ ! -d debian ] ; then
3 echo "Not a grml-live repo!" >&2
8 echo "This script updates the version used in grml-live to the debian/changelog!" >&2
12 version=$(dpkg-parsechangelog | awk '/^Version:/ {print $2}')
13 sed -i 's/^\(GRML_LIVE_VERSION=.\).*\(.\)\s*$/\1'$version'\2/' grml-live