feat(devtools): add optional tag argument to deb-package.sh

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
This commit is contained in:
Sandro-Alessio Gierens 2024-05-06 22:49:37 +02:00 committed by Christina Rust
parent 23502d3cd5
commit f1ef455b9a

View file

@ -8,6 +8,10 @@ DOCDIR=/usr/share/man/
COMMIT=$(git rev-parse --abbrev-ref HEAD)
TAG=$(git describe --tags "$(git rev-list --tags --max-count=1)")
if [ -n "$1" ]; then
TAG=$1
fi
VERSION=${TAG:1}
echo "checkout tag ${TAG}"