Date: Tue, 18 Nov 2014 16:03:41 +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: r372726 - head/Tools/scripts Message-ID: <201411181603.sAIG3fWr022118@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 ;;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411181603.sAIG3fWr022118>