aboutsummaryrefslogtreecommitdiff
path: root/release/scripts
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-02-08 18:06:36 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-02-08 18:06:36 +0000
commit24a110a1ecaa1eab95d0bf77834320a297c700b2 (patch)
tree982c60ff027333140f32565ab50331128a4da471 /release/scripts
parent1c6eb1b25b3c2c6f3dad919c980ba68aacc2b518 (diff)
downloadsrc-24a110a1ecaa1eab95d0bf77834320a297c700b2.tar.gz
src-24a110a1ecaa1eab95d0bf77834320a297c700b2.zip
Add a awk script to convert the metalog output into plist
Splitting according to tags
Notes
Notes: svn path=/projects/release-pkg/; revision=278391
Diffstat (limited to 'release/scripts')
-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
+}