From 0f69c9522c31ec0f802e3d4091c88ee6c044e4da Mon Sep 17 00:00:00 2001 From: Gellule Xg Date: Fri, 9 Dec 2011 10:13:49 -1000 Subject: Added option -j|--jobs to osx-build.sh. This sets the number of jobs option of make. (bzr r10764.1.1) --- packaging/macosx/osx-build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh index 5d3ebaed4..7e7a74ed4 100755 --- a/packaging/macosx/osx-build.sh +++ b/packaging/macosx/osx-build.sh @@ -54,6 +54,7 @@ Compilation script for Inkscape on Mac OS X. \033[1m-p,--prefix\033[0m specify install prefix (configure step only) \033[1mb,build\033[0m build Inkscape (run make) + \033[1m-j,--jobs\033[0m Set the number of parallel execution for make \033[1mi,install\033[0m install the build products locally, inside the source directory (run make install) @@ -97,6 +98,7 @@ BZRUPDATE="f" AUTOGEN="f" CONFIGURE="f" BUILD="f" +NJOBS=1 INSTALL="f" PACKAGE="f" DISTRIB="f" @@ -131,6 +133,9 @@ do UNIVERSAL="t" ;; b|build) BUILD="t" ;; + -j|--jobs) + NJOBS=$2 + shift 1 ;; i|install) INSTALL="t" ;; p|pack|package) @@ -277,7 +282,7 @@ fi if [[ "$BUILD" == "t" ]] then cd $SRCROOT - make + make -j $NJOBS status=$? if [[ $status -ne 0 ]]; then echo -e "\nBuild failed" -- cgit v1.2.3