Date: Thu, 5 Mar 2015 11:43:13 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r279653 - projects/release-pkg/release/scripts Message-ID: <201503051143.t25BhDOf002793@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Thu Mar 5 11:43:12 2015 New Revision: 279653 URL: https://svnweb.freebsd.org/changeset/base/279653 Log: Convert tagged directories in mtree into their plist form Modified: projects/release-pkg/release/scripts/mtree-to-plist.awk Modified: projects/release-pkg/release/scripts/mtree-to-plist.awk ============================================================================== --- projects/release-pkg/release/scripts/mtree-to-plist.awk Thu Mar 5 10:40:45 2015 (r279652) +++ projects/release-pkg/release/scripts/mtree-to-plist.awk Thu Mar 5 11:43:12 2015 (r279653) @@ -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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503051143.t25BhDOf002793>