pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk We only need the special PLIST info-file handling i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2abe46af87c
branches:  trunk
changeset: 466423:d2abe46af87c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Jan 18 00:51:30 2004 +0000

description:
We only need the special PLIST info-file handling if we're using static
PLISTs.  Dynamic PLISTs automatically list the installed info files in the
PLIST.

diffstat:

 mk/bsd.pkg.mk |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 868ec49ebe03 -r d2abe46af87c mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Jan 17 22:16:12 2004 +0000
+++ b/mk/bsd.pkg.mk     Sun Jan 18 00:51:30 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1345 2004/01/14 06:57:45 rh Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1346 2004/01/18 00:51:30 jlam Exp $
 #
 # This file is in the public domain.
 #
@@ -4918,8 +4918,9 @@
 # XXX When all info file entries will be removed from PLIST files
 # the non-BEGIN pattern-action statements generated below will be retired.
 _PLIST_AWK_INFO=
-.if !empty(INFO_FILES)
-.  for _f_ in ${INFO_FILES}
+.if ${PLIST_TYPE} == "static"
+.  if !empty(INFO_FILES)
+.    for _f_ in ${INFO_FILES}
 _PLIST_AWK_INFO+=                                                      \
 BEGIN {                                                                        \
        cmd="${_f_}"; gsub("'\''", "\\'\''", cmd);                      \
@@ -4934,7 +4935,8 @@
        close(cmd);                                                     \
 }                                                                      \
 /^${INFO_DIR:S|/|\\/|g}\/${_f_}(-[0-9]+)?$$/ { next; }
-.  endfor
+.    endfor
+.  endif
 .endif
 
 # _PLIST_AWK_SCRIPT hold the complete awk script for plist target.



Home | Main Index | Thread Index | Old Index