From fa52cba61d05d2d221ec01cfa842bdcf06b546fa Mon Sep 17 00:00:00 2001 From: erh Date: Fri, 5 Nov 2004 19:41:16 +0000 Subject: Fix the sed command that processes the +CONTENTS file so packages that don't contain "@comment $NetBSD" lines still work correctly. Also fix handling of magic "@comment Symlink:" lines. Bump version to 1.6.5 --- pkgtools/pkg_tarup/Makefile | 4 ++-- pkgtools/pkg_tarup/files/pkg_tarup | 20 ++++++++++++++++---- 2 files changed, 18 insertions(+), 6 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkg_tarup/Makefile b/pkgtools/pkg_tarup/Makefile index 2b41e5a25e5..5a2e2cb0d78 100644 --- a/pkgtools/pkg_tarup/Makefile +++ b/pkgtools/pkg_tarup/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.24 2004/10/29 14:51:41 tv Exp $ +# $NetBSD: Makefile,v 1.25 2004/11/05 19:41:16 erh Exp $ -DISTNAME= pkg_tarup-1.6.4 +DISTNAME= pkg_tarup-1.6.5 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkg_tarup/files/pkg_tarup b/pkgtools/pkg_tarup/files/pkg_tarup index 526a47e221f..95893f16f7e 100644 --- a/pkgtools/pkg_tarup/files/pkg_tarup +++ b/pkgtools/pkg_tarup/files/pkg_tarup @@ -1,6 +1,6 @@ #! @SH@ # -# $Id: pkg_tarup,v 1.18 2004/10/29 14:51:41 tv Exp $ +# $Id: pkg_tarup,v 1.19 2004/11/05 19:41:16 erh Exp $ # # Tar up installed package # @@ -92,10 +92,22 @@ create_package() check_and_add -n "${PKG_DBDIR}/${PKG}/+PRESERVE" PLIST=/tmp/+CONTENTS.$$ - ${SED} -n \ + + # This sed command trims out all of the following: + # md5 magic comments, symlink magic comments + # lines starting with @blddep, @pkgdep, @pkgcfl, @name, @mtree + # @cwd lines that refer to the current directory "@cwd ." + # @ignore and any line immediately following it + ${SED} \ -e '/^@comment MD5:/d' \ - -e '/^@cwd \.$/,$d' \ - -e '/\$NetBSD/,$p' \ + -e '/^@comment Symlink:/d' \ + -e '/^@blddep/d' \ + -e '/^@pkgdep/d' \ + -e '/^@pkgcfl/d' \ + -e '/^@name/d' \ + -e '/^@mtree/d' \ + -e '/^@cwd \.$/d' \ + -e '/^@ignore/,/^.*$/d' \ <"${PKG_DBDIR}/${PKG}/+CONTENTS" >"${PLIST}" # Duplicate first @cwd (work around pkg_create "feature" ...) -- cgit v1.2.3