aboutsummaryrefslogtreecommitdiff
path: root/release/scripts/mtree-to-plist.awk
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/mtree-to-plist.awk')
-rw-r--r--release/scripts/mtree-to-plist.awk15
1 files changed, 15 insertions, 0 deletions
diff --git a/release/scripts/mtree-to-plist.awk b/release/scripts/mtree-to-plist.awk
new file mode 100644
index 000000000000..21dd7840af01
--- /dev/null
+++ b/release/scripts/mtree-to-plist.awk
@@ -0,0 +1,15 @@
+#!/usr/bin/awk
+/^[^#]/ {
+ gsub(/^\./,"", $1)
+ tags=$NF
+ gsub(/tags=/,"", tags)
+ output=tags".plist"
+ uname=$3
+ gname=$4
+ mode=$5
+ gsub(/uname=/, "", uname);
+ gsub(/gname=/, "", gname);
+ gsub(/mode=/, "", mode);
+
+ print "@("uname","gname","mode") " $1 > output
+}