summaryrefslogtreecommitdiff
path: root/mk/bulk/build
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-12-17 02:32:22 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-12-17 02:32:22 +0000
commitf68e56c389765e96d374fbb9f6e3cc86ca1b1a1e (patch)
tree46206899ae8ca78a529c724dd73b18e44d6a3b43 /mk/bulk/build
parent72f6aad26da8e24e8f6430a4a6b086e945040a5e (diff)
downloadpkgsrc-f68e56c389765e96d374fbb9f6e3cc86ca1b1a1e.tar.gz
- add 'bulk-cache' and 'clean-bulk-cache' targets to create and remove
the cache files used during a bulk pkgsrc build. - replace the code in the build script that used to create the cache files with a 'make bulk-cache' call.
Diffstat (limited to 'mk/bulk/build')
-rw-r--r--mk/bulk/build21
1 files changed, 3 insertions, 18 deletions
diff --git a/mk/bulk/build b/mk/bulk/build
index 38903ea0f84..b374d79d7fa 100644
--- a/mk/bulk/build
+++ b/mk/bulk/build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.19 2001/12/01 12:40:52 hubertf Exp $
+# $NetBSD: build,v 1.20 2001/12/17 02:32:23 dmcmahill Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org>
@@ -137,25 +137,10 @@ do
cd ${USR_PKGSRC}/$pkgdir && make bulk-install
done
-# Figure out optimal build order.
+# Create the bulk cache files
cd ${USR_PKGSRC}
if [ "$1" != "restart" ]; then
- echo "Building dependency tree (this may take a while)..."
- sh mk/bulk/printdepends $BROKENFILE > $DEPENDSTREEFILE
-
- echo "Sorting build order..."
- tsort $DEPENDSTREEFILE > $ORDERFILE
-
- echo "Generating up and down dependency files..."
- ./mk/bulk/tflat -u $DEPENDSTREEFILE > $SUPPORTSFILE
- ./mk/bulk/tflat -d $DEPENDSTREEFILE > $DEPENDSFILE
-
- echo "Generating package name <=> package directory cross reference file (this may take a while)..."
- sh mk/bulk/printindex $BROKENFILE > $INDEXFILE
- if [ $? != 0 ]; then
- echo "ERROR while creating $INDEXFILE"
- exit 1
- fi
+ cd ${USR_PKGSRC} && make bulk-cache
fi
echo "Starting actual build using the order specified in $ORDERFILE..."