svn commit: r372729 - head/Tools/scripts
Mathieu Arnold
mat at FreeBSD.org
Tue Nov 18 16:26:10 UTC 2014
Author: mat
Date: Tue Nov 18 16:26:09 2014
New Revision: 372729
URL: https://svnweb.freebsd.org/changeset/ports/372729
QAT: https://qat.redports.org/buildarchive/r372729/
Log:
Make this work with any amount of tabulations between the = and the value of PORTREVISION.
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 16:10:28 2014 (r372728)
+++ head/Tools/scripts/bump-revision.sh Tue Nov 18 16:26:09 2014 (r372729)
@@ -59,7 +59,7 @@ do
# 1, bail out and complain.
# The proper fix is to do a stricter check that PORTREVISION
# is an integer.
- awk -F "\t" '/^PORTREVISION\??=/{ rplc = gsub ($2,$2+1); if (rplc != 1) { exit 1 } };{ print }' "$1/Makefile" > $tempfile \
+ awk -F "\t+" '/^PORTREVISION\??=/{ rplc = gsub ($2,$2+1); if (rplc != 1) { exit 1 } };{ print }' "$1/Makefile" > $tempfile \
&& { cat $tempfile > "$1/Makefile" ; printc "$1: $revision found, bumping it by 1." "green" ; } \
|| printc "$1: FAILED TO BUMP PORTREVISION" red
;;
More information about the svn-ports-all
mailing list