summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-06-15 15:52:22 +0000
committerrillig <rillig@pkgsrc.org>2007-06-15 15:52:22 +0000
commit3a6deb35395ac949e2f9785271b78e835418797d (patch)
tree9e16ffd096e0cfd3b854573c27db5648abcccbd2 /mk/bulk
parent32b215df0522b38245929907d88a1db987911946 (diff)
downloadpkgsrc-3a6deb35395ac949e2f9785271b78e835418797d.tar.gz
The option --prepare only generates the bulk build database.
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/build17
1 files changed, 16 insertions, 1 deletions
diff --git a/mk/bulk/build b/mk/bulk/build
index 7a26a797294..8501e9ae796 100644
--- a/mk/bulk/build
+++ b/mk/bulk/build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.101 2007/03/07 23:32:49 rillig Exp $
+# $NetBSD: build,v 1.102 2007/06/15 15:52:22 rillig Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
@@ -45,6 +45,7 @@ target=bulk-package
makeargs=""
noemail=no
post_only=no
+prepare_only=no
##
## Functions
@@ -81,6 +82,10 @@ The following options are supported:
-p | --post-build
Run the post-build processing and generate the report only.
+ --prepare
+ Only generate the package database that will be used when bulk
+ building the packages.
+
-r | --resume
Resume a previously interrupted bulk build.
@@ -404,6 +409,12 @@ do_bulk_build () {
fi
fi
+ # XXX: This looks like a hack, and indeed, the functions in this file
+ # should be reorganized to better reflect the phases of the bulk build.
+ if [ $prepare_only = yes ]; then
+ exit 0
+ fi
+
do_real_bulk_build
do_bulk_cleanup
}
@@ -439,6 +450,10 @@ while test $# -gt 0; do
post_only=yes
shift
;;
+ --prepare)
+ prepare_only=yes
+ shift
+ ;;
-r|--resume|--restart|restart)
resume=yes
shift