Add a awk script to convert the metalog output into plist

Splitting according to tags
This commit is contained in:
Baptiste Daroussin 2015-02-08 18:06:36 +00:00
parent 1c6eb1b25b
commit 24a110a1ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-pkg/; revision=278391

View File

@ -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
}