aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts/bump-revision.sh
diff options
context:
space:
mode:
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
;;