Add a awk script to convert the metalog output into plist
Splitting according to tags
This commit is contained in:
parent
1c6eb1b25b
commit
24a110a1ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-pkg/; revision=278391
15
release/scripts/mtree-to-plist.awk
Normal file
15
release/scripts/mtree-to-plist.awk
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user