summaryrefslogtreecommitdiff
path: root/mk/bulk/printindex
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-03-27 02:50:05 +0000
committerdmcmahill <dmcmahill>2001-03-27 02:50:05 +0000
commit5071e124037283fb89be181d31509c0c9619d4c2 (patch)
treee10baa1b1e305cb94e6011c5bde7a6d23ba3671d /mk/bulk/printindex
parentbfb9b443138f8494c4e6f28b28823bc092329479 (diff)
downloadpkgsrc-5071e124037283fb89be181d31509c0c9619d4c2.tar.gz
make sure that any packages listed in BULK_PREREQ get listed in the output
even if they are not enabled in the category makefiles. This catches, in particular, pkgtools/xpkgwedge which was missing before. Thanks to Christoph Badura for noting this.
Diffstat (limited to 'mk/bulk/printindex')
-rw-r--r--mk/bulk/printindex27
1 files changed, 25 insertions, 2 deletions
diff --git a/mk/bulk/printindex b/mk/bulk/printindex
index 3cc140ffc63..2f5bf3ad095 100644
--- a/mk/bulk/printindex
+++ b/mk/bulk/printindex
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: printindex,v 1.2 2001/02/17 16:45:10 wiz Exp $
+# $NetBSD: printindex,v 1.3 2001/03/27 02:50:05 dmcmahill Exp $
#
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -57,8 +57,31 @@ list=`grep '^[[:space:]]*'SUBDIR */Makefile | sed 's,/Makefile.*=[[:space:]]*,/,
for pkgdir in $list
do
cd $pkgdir
- pkgname=`make show-var VARNAME=PKGNAME`
+ #pkgname=`make show-var VARNAME=PKGNAME`
echo "$pkgdir $pkgname "
cd $cwd
done
+# get the list of packages which should always be installed during the build
+# Make sure these ended up in the index file. For example, xpkgwedge, might
+# not be enabled for builds in pkgtools/xpkgwedge, but we may want to have
+# it listed in the index file.
+
+cd $cwd/pkgtools/pkglint && BULK_PREREQ=`make show-var VARNAME=BULK_PREREQ`
+cd $cwd
+
+for pkgdir in $BULK_PREREQ
+do
+ case $list in
+ *$pkgdir*)
+ # its already listed, do nothing
+ ;;
+ *)
+ cd $cwd/$pkgdir
+ pkgname=`make show-var VARNAME=PKGNAME`
+ echo "$pkgdir $pkgname "
+ cd $cwd
+ ;;
+ esac
+done
+