svn commit: r372726 - head/Tools/scripts
Mathieu Arnold
mat at FreeBSD.org
Tue Nov 18 16:03:41 UTC 2014
Author: mat
Date: Tue Nov 18 16:03:40 2014
New Revision: 372726
URL: https://svnweb.freebsd.org/changeset/ports/372726
QAT: https://qat.redports.org/buildarchive/r372726/
Log:
Fix if PORTREVISION is not already there.
Sponsored by: Absolight
Modified:
head/Tools/scripts/bump-revision.sh
Modified: head/Tools/scripts/bump-revision.sh
==============================================================================
--- head/Tools/scripts/bump-revision.sh Tue Nov 18 15:47:34 2014 (r372725)
+++ head/Tools/scripts/bump-revision.sh Tue Nov 18 16:03:40 2014 (r372726)
@@ -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
;;
More information about the svn-ports-head
mailing list