diff options
author | mat <mat@FreeBSD.org> | 2014-11-19 00:03:40 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-11-19 00:03:40 +0800 |
commit | f22ca61889e2efe5ac2c30dd3c24facde974eebd (patch) | |
tree | 1fe2ed977abeea80c67ffa772b41483d5d71cbdb | |
parent | 315739dab3a1a93a3eb33469343b9a4e57162bd9 (diff) | |
download | freebsd-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
-rwxr-xr-x | Tools/scripts/bump-revision.sh | 2 |
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 ;; |