aboutsummaryrefslogblamecommitdiff
path: root/release/scripts/mtree-to-plist.awk
blob: 21dd7840af0153566ede28539ca1fcdcbac013a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}