From 8e40deae6a6ecb0bb524f6f1ab42cda94d72fe2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Tue, 28 Mar 2023 16:30:56 +0200 Subject: [PATCH] add git-pull to Makefile --- _data/version.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_data/version.sh b/_data/version.sh index 6dda484..f35d4b9 100755 --- a/_data/version.sh +++ b/_data/version.sh @@ -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}')