mirror of
https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git
synced 2025-01-18 11:41:10 +01:00
Extend update script
This commit is contained in:
parent
2f2432e69a
commit
7b0489a539
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue