Date: Mon, 24 Feb 2014 16:35:43 +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: r345877 - head/Mk/Scripts Message-ID: <201402241635.s1OGZhRq006717@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Mon Feb 24 16:35:43 2014 New Revision: 345877 URL: http://svnweb.freebsd.org/changeset/ports/345877 QAT: https://qat.redports.org/buildarchive/r345877/ Log: Remove quotes around values we get in PLIST_SUB. [1] While there, don't replace 1 char entries in PLIST_SUB. Noticed by: amdmi3 [1] Sponsored by: Absolight Modified: head/Mk/Scripts/check-stagedir.sh Modified: head/Mk/Scripts/check-stagedir.sh ============================================================================== --- head/Mk/Scripts/check-stagedir.sh Mon Feb 24 16:32:28 2014 (r345876) +++ head/Mk/Scripts/check-stagedir.sh Mon Feb 24 16:35:43 2014 (r345877) @@ -102,9 +102,9 @@ fi for i in $PLIST_SUB do echo $i -done | awk -F= '{print length($2), $1, $2 | "sort -nr" }' | while read l k v +done | awk -F= '{sub(/^"/, "", $2); sub(/"$/, "", $2); print length($2), $1, $2 | "sort -nr" }' | while read l k v do - if [ $l -ne 0 ] + if [ $l -gt 1 ] then echo "s,${v},%%${k}%%,g;" fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402241635.s1OGZhRq006717>