aboutsummaryrefslogtreecommitdiff
path: root/release/scripts/mtree-to-plist.awk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-03-05 11:43:12 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-03-05 11:43:12 +0000
commit1e53d87c00ca10716dd02c5ceff43d8f761bb743 (patch)
tree855f40aaec0a6eb97ae5c75eb446e577e0096181 /release/scripts/mtree-to-plist.awk
parentca202c471b40abc91d72cfceff89404e0120ccc5 (diff)
downloadsrc-1e53d87c00ca10716dd02c5ceff43d8f761bb743.tar.gz
src-1e53d87c00ca10716dd02c5ceff43d8f761bb743.zip
Convert tagged directories in mtree into their plist form
Notes
Notes: svn path=/projects/release-pkg/; revision=279653
Diffstat (limited to 'release/scripts/mtree-to-plist.awk')
-rw-r--r--release/scripts/mtree-to-plist.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/mtree-to-plist.awk b/release/scripts/mtree-to-plist.awk
index 453c63bb54f0..9b7dd991f50d 100644
--- a/release/scripts/mtree-to-plist.awk
+++ b/release/scripts/mtree-to-plist.awk
@@ -1,7 +1,7 @@
#!/usr/bin/awk
/^[^#]/ {
gsub(/^\./,"", $1)
- uname = gname = mode = flags = tags = ""
+ uname = gname = mode = flags = tags = type = ""
for (i=2; i<=NF; i++) {
if ($i ~ /^uname=/) {
uname=$i
@@ -18,6 +18,8 @@
} else if ($i ~ /^tags=/) {
tags=$i
gsub(/tags=/, "", tags)
+ } else if ($i ~ /^type=dir/) {
+ type="dir"
}
}
if (length(tags) == 0)
@@ -32,5 +34,5 @@
}
output=pkg".plist"
- print "@("uname","gname","mode","flags") " $1 > output
+ print "@"type"("uname","gname","mode","flags") " $1 > output
}