From 87222efb0909e6f6c629acef2ea6d000bdb8df15 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Nov 24 2016 10:59:29 +0000 Subject: add --force parameter to force a rebuild even if patchlevel didn't change --- diff --git a/vim-update.sh b/vim-update.sh index a9cfe17..80fc13d 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -6,6 +6,11 @@ cd `dirname $0` LANG=C SPEC=vim.spec CHANGES=1 +force=0 + +if [ "x$1" == "x--force" ]; then + force=1 +fi DATE=`date +"%a %b %d %Y"` fedpkg switch-branch master @@ -28,7 +33,7 @@ LASTTAG=$(git describe --tags $(git rev-list --tags --max-count=1)) UPSTREAMMAJOR=$(echo $LASTTAG | sed -e 's/v\([0-9]*\.[0-9]*\).*/\1/') LASTPL=`echo $LASTTAG| sed -e 's/.*\.//;s/^0*//'` LASTPLFILLED=`printf "%03d" $LASTPL` -if [ "$ORIGPLFILLED" == "$LASTPLFILLED" ]; then +if [ $force -ne 1 -a "$ORIGPLFILLED" == "$LASTPLFILLED" ]; then echo "No new patchlevel available" CHANGES=0 fi