From owner-svn-src-projects@FreeBSD.ORG Thu Mar 5 11:43:13 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CABD136; Thu, 5 Mar 2015 11:43:13 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78323916; Thu, 5 Mar 2015 11:43:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t25BhDH5002794; Thu, 5 Mar 2015 11:43:13 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t25BhDOf002793; Thu, 5 Mar 2015 11:43:13 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201503051143.t25BhDOf002793@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Thu, 5 Mar 2015 11:43:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r279653 - projects/release-pkg/release/scripts X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 11:43:13 -0000 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 }