summaryrefslogtreecommitdiff
path: root/mk/plist
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-02-07 19:18:42 +0000
committerjlam <jlam@pkgsrc.org>2006-02-07 19:18:42 +0000
commit15d65cd972e357a23294363ddb731db3a5318544 (patch)
treed8f1fe6bbda4d701edaa5b1f68e3e7418355f197 /mk/plist
parentf2f055fdd58d6767af261b486426c81ef6836d18 (diff)
downloadpkgsrc-15d65cd972e357a23294363ddb731db3a5318544.tar.gz
Info pages don't always end in ".info" as noted in PR pkg/32699. Fix the
PLIST handling based on the suggestion in the PR by Johan Danielsson. This restores the behavior from the old PLIST code.
Diffstat (limited to 'mk/plist')
-rw-r--r--mk/plist/plist-info.awk17
1 files changed, 11 insertions, 6 deletions
diff --git a/mk/plist/plist-info.awk b/mk/plist/plist-info.awk
index 4cb2baae46d..d345fe7d27f 100644
--- a/mk/plist/plist-info.awk
+++ b/mk/plist/plist-info.awk
@@ -1,4 +1,4 @@
-# $NetBSD: plist-info.awk,v 1.4 2006/02/07 18:42:38 jlam Exp $
+# $NetBSD: plist-info.awk,v 1.5 2006/02/07 19:18:42 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -62,10 +62,10 @@ BEGIN {
}
###
-### Ignore *.info-1, *.info-2, etc. files in the PLIST as we get the
-### list of installed *.info-[0-9]* files below.
+### Ignore *-1, *-2, etc. files in the PLIST as we get the list of
+### installed split files below.
###
-/^[^@]/ && /^info\/[^\/]*\.info-[0-9]+(\.gz)?$/ {
+/^[^@]/ && /^info\/[^\/]*(\.info)?-[0-9]+(\.gz)?$/ {
next
}
@@ -73,13 +73,18 @@ BEGIN {
### For each info page entry, print all of the installed info sub-pages
### associated with that entry.
###
-/^[^@]/ && /^info\/[^\/]*\.info(\.gz)?$/ {
+/^[^@]/ && /^info\/[^\/]*(\.info)?(\.gz)?$/ {
sub("^info/", INFO_DIR "/")
cmd = TEST " -f " PREFIX "/" $0
if (system(cmd) == 0) {
sub("\\.gz$", "")
- cmd = "cd " PREFIX " && " LS " -1 " $0 "*"
+ base = $0
+ cmd = "cd " PREFIX " && " LS " -1 " base "*"
while (cmd | getline) {
+ # Filter out unrelated info files
+ if ($0 !~ "^" base "(-[0-9]+)?(\.gz)?$") {
+ continue
+ }
#if ((MANZ ~ /[yY][eE][sS]/) && ($0 !~ /\.gz$/)) {
# $0 = $0 ".gz"
#} else if ((MANZ !~ /[yY][eE][sS]/) && ($0 ~ /\.gz$/)) {