pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk The option --prepare only generates the bulk b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fcdf92180968
branches:  trunk
changeset: 530030:fcdf92180968
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jun 15 15:52:22 2007 +0000

description:
The option --prepare only generates the bulk build database.

diffstat:

 mk/bulk/build |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 1e0ea45a0a27 -r fcdf92180968 mk/bulk/build
--- a/mk/bulk/build     Fri Jun 15 15:44:25 2007 +0000
+++ b/mk/bulk/build     Fri Jun 15 15:52:22 2007 +0000
@@ -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@localhost>
@@ -45,6 +45,7 @@
 makeargs=""
 noemail=no
 post_only=no
+prepare_only=no
 
 ##
 ## Functions
@@ -81,6 +82,10 @@
    -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 @@
                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 @@
                post_only=yes
                shift
                ;;
+       --prepare)
+               prepare_only=yes
+               shift
+               ;;
        -r|--resume|--restart|restart)
                resume=yes
                shift



Home | Main Index | Thread Index | Old Index