aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts/bump-revision.sh
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-11-19 00:03:40 +0800
committermat <mat@FreeBSD.org>2014-11-19 00:03:40 +0800
commitf22ca61889e2efe5ac2c30dd3c24facde974eebd (patch)
tree1fe2ed977abeea80c67ffa772b41483d5d71cbdb /Tools/scripts/bump-revision.sh
parent315739dab3a1a93a3eb33469343b9a4e57162bd9 (diff)
downloadfreebsd-ports-gnome-f22ca61889e2efe5ac2c30dd3c24facde974eebd.tar.gz
freebsd-ports-gnome-f22ca61889e2efe5ac2c30dd3c24facde974eebd.tar.zst
freebsd-ports-gnome-f22ca61889e2efe5ac2c30dd3c24facde974eebd.zip
Fix if PORTREVISION is not already there.
Sponsored by: Absolight
Diffstat (limited to 'Tools/scripts/bump-revision.sh')
-rwxr-xr-xTools/scripts/bump-revision.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/bump-revision.sh b/Tools/scripts/bump-revision.sh
index ed18d2bcbf45..e16fa39393f4 100755
--- a/Tools/scripts/bump-revision.sh
+++ b/Tools/scripts/bump-revision.sh
@@ -64,7 +64,7 @@ do
|| printc "$1: FAILED TO BUMP PORTREVISION" red
;;
1)
- awk '/^PORTVERSION\??=\t/{print;print "PORTREVISION=\t1";next}' "$1/Makefile" > $tempfile \
+ awk '/^(PORT|DIST)VERSION\??=\t/{print;print "PORTREVISION=\t1";next} {print}' "$1/Makefile" > $tempfile \
&& { cat $tempfile > "$1/Makefile" ;printc "$1: PORTREVISION not found, adding PORTREVISION=1" "green" ; } \
|| printc "$1: FAILED TO BUMP PORTREVISION" red
;;