From: Elan Ruusamäe Date: Tue, 7 Dec 2010 13:07:57 +0000 (+0000) Subject: - add -jN support X-Git-Tag: auto/th/rpm-build-tools-4_5-1~43 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=6c5362e5a07b40e9f43819041cab2c3ca6fac8e1;p=packages%2Frpm-build-tools.git - add -jN support Changed files: builder.sh -> 1.639 --- diff --git a/builder.sh b/builder.sh index 9fb659b..c845f7e 100644 --- a/builder.sh +++ b/builder.sh @@ -300,6 +300,7 @@ Usage: builder [-D|--debug] [-V|--version] [--short-version] [--as_anon] [-a|--a -g, --get - get .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 , --logtofile - 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 )