Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 16:26:10 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372729 - head/Tools/scripts
Message-ID:  <201411181626.sAIGQAav032037@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 	    ;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411181626.sAIGQAav032037>