add git-pull to Makefile

This commit is contained in:
Mike Schwörer 2023-03-28 16:30:56 +02:00
parent 289b9f47a2
commit 8e40deae6a
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -21,6 +21,8 @@ if [ "$( git rev-parse --abbrev-ref HEAD )" != "master" ]; then
exit 1
fi
git pull --rebase
curr_vers=$(git describe --tags --abbrev=0 | sed 's/v//g')
next_ver=$(echo "$curr_vers" | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}')