svn commit: r345877 - head/Mk/Scripts

Mathieu Arnold mat at FreeBSD.org
Mon Feb 24 16:35:44 UTC 2014


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


More information about the svn-ports-all mailing list