]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- add -jN support
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 7 Dec 2010 13:07:57 +0000 (13:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.639

builder.sh

index 9fb659be781b0f17b678eae407d65fef1e7b5843..c845f7e91b870c534b20a5de88ee7cc204e2103a 100644 (file)
@@ -300,6 +300,7 @@ Usage: builder [-D|--debug] [-V|--version] [--short-version] [--as_anon] [-a|--a
 -g, --get           - get <package>.spec and all related files from CVS repo
                       or HTTP/FTP,
 -h, --help          - this message,
+-jN, -j N           - set %_smp_mflags to propagate concurrent jobs
 --http              - use http instead of ftp,
 -l <logfile>, --logtofile <logfile>
                     - log all to file,
@@ -2176,6 +2177,14 @@ while [ $# -gt 0 ]; do
                        COMMAND="usage"; shift ;;
                --http )
                        PROTOCOL="http"; shift ;;
+               -j)
+                       RPMOPTS="${RPMOPTS} --define \"_smp_mflags -j$2\""
+                       shift 2
+                       ;;
+               -j[0-9]*)
+                       RPMOPTS="${RPMOPTS} --define \"_smp_mflags $1\""
+                       shift
+                       ;;
                -l | --logtofile )
                        shift; LOGFILE="${1}"; shift ;;
                -ni| --nice )
This page took 0.105316 seconds and 4 git commands to generate.