From 7b0489a539379e7f5c0591e51b208298e896d441 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Tue, 2 Feb 2021 16:02:31 +0100 Subject: [PATCH] Extend update script --- update_version_and_changelog.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/update_version_and_changelog.sh b/update_version_and_changelog.sh index 6df856f..c3232e6 100755 --- a/update_version_and_changelog.sh +++ b/update_version_and_changelog.sh @@ -1,5 +1,9 @@ #!/bin/bash +SCRIPT=$(realpath "$0") +SCRIPTPATH=$(dirname "$SCRIPT") +cd "$SCRIPTPATH" + [[ $(cat debian/changelog) =~ \(([0-9]*.[0-9]*.[0-9]*)\) ]] LAST_CHANGELOG_VERSION=${BASH_REMATCH[1]} echo "Last changelog version: $LAST_CHANGELOG_VERSION" @@ -17,3 +21,5 @@ dch -r git add debian/changelog git commit -m "Update debian/changelog to version $NEW_CHANGELOG_VERSION" git tag v$NEW_CHANGELOG_VERSION + +debuild -uc -us