diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-11 12:21:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-11 12:21:33 +0900 |
commit | 8a26a5e770a1070cb4a877b121787fc8d2036fae (patch) | |
tree | 9805de524885be755dd7471b3a789c7dc89c3ae5 | |
parent | 8fa083ac8de98a8dc56a76c85418be5e9fa28f4d (diff) | |
download | tde-packaging-8a26a5e770a1070cb4a877b121787fc8d2036fae.tar.gz tde-packaging-8a26a5e770a1070cb4a877b121787fc8d2036fae.zip |
DEB build scripts: added support to disable parallel build if needed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rwxr-xr-x | debian/_buildscripts/local/internals/_pbuilder.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/_buildscripts/local/internals/_pbuilder.sh b/debian/_buildscripts/local/internals/_pbuilder.sh index 9c36ac219..51ba48dc6 100755 --- a/debian/_buildscripts/local/internals/_pbuilder.sh +++ b/debian/_buildscripts/local/internals/_pbuilder.sh @@ -64,10 +64,14 @@ apt-get update END_D05_03 chmod a+x "$PBUILDER_DEPS_HOOK" # Build + OPT_BUILD_PARALLEL="" + if [ ${DEB_BUILD_PARALLEL+x} ]; then + OPT_BUILD_PARALLEL="DEB_BUILD_PARALLEL=$DEB_BUILD_PARALLEL" + fi eval pdebuild $OPT_INTERNAL_PBUILDER $OPT_SIGN_PKG_PBUILDER \ --architecture $ARCHITECTURE \ --buildresult \"$MOD_DEB_PATH\" \ - --pbuilderroot \"sudo DISTRO_NAME=$DISTRO_NAME ARCHITECTURE=$ARCHITECTURE\" \ + --pbuilderroot \"sudo $OPT_BUILD_PARALLEL DISTRO_NAME=$DISTRO_NAME ARCHITECTURE=$ARCHITECTURE\" \ --logfile \"$BUILDING_LOG_FILE\" \ -- \ --bindmounts \"$TDE_DEBS_DIR\" \ |