aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-02-25 00:35:43 +0800
committermat <mat@FreeBSD.org>2014-02-25 00:35:43 +0800
commitaf800ef6d2993e76cd6b71bb9628ca4b1d21246f (patch)
tree961ac520c2bc80fcf905365529d2479b41036b18 /Mk
parent52e12c59432e75b6bd9232f7f9a64866d956812a (diff)
downloadfreebsd-ports-gnome-af800ef6d2993e76cd6b71bb9628ca4b1d21246f.tar.gz
freebsd-ports-gnome-af800ef6d2993e76cd6b71bb9628ca4b1d21246f.tar.zst
freebsd-ports-gnome-af800ef6d2993e76cd6b71bb9628ca4b1d21246f.zip
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
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/check-stagedir.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Scripts/check-stagedir.sh b/Mk/Scripts/check-stagedir.sh
index 2003e78e4dfc..76b50d10b1e0 100644
--- a/Mk/Scripts/check-stagedir.sh
+++ b/Mk/Scripts/check-stagedir.sh
@@ -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