diff options
author | bapt <bapt@FreeBSD.org> | 2015-03-05 11:43:12 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-03-05 11:43:12 +0000 |
commit | 78dacb171d1f10f763824fd8eec2ff2d084aacc6 (patch) | |
tree | 855f40aaec0a6eb97ae5c75eb446e577e0096181 /release/scripts | |
parent | 0b6fca90d4b49547ab67e7448eafaae832640fe0 (diff) | |
download | FreeBSD-src-78dacb171d1f10f763824fd8eec2ff2d084aacc6.zip FreeBSD-src-78dacb171d1f10f763824fd8eec2ff2d084aacc6.tar.gz |
Convert tagged directories in mtree into their plist form
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/mtree-to-plist.awk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/mtree-to-plist.awk b/release/scripts/mtree-to-plist.awk index 453c63b..9b7dd99 100644 --- a/release/scripts/mtree-to-plist.awk +++ b/release/scripts/mtree-to-plist.awk @@ -1,7 +1,7 @@ #!/usr/bin/awk /^[^#]/ { gsub(/^\./,"", $1) - uname = gname = mode = flags = tags = "" + uname = gname = mode = flags = tags = type = "" for (i=2; i<=NF; i++) { if ($i ~ /^uname=/) { uname=$i @@ -18,6 +18,8 @@ } else if ($i ~ /^tags=/) { tags=$i gsub(/tags=/, "", tags) + } else if ($i ~ /^type=dir/) { + type="dir" } } if (length(tags) == 0) @@ -32,5 +34,5 @@ } output=pkg".plist" - print "@("uname","gname","mode","flags") " $1 > output + print "@"type"("uname","gname","mode","flags") " $1 > output } |