summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-29 17:40:57 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-29 17:40:57 +0100
commit1e939b9b5d8973003f6e58fb92a38b1b20e48b7c (patch)
tree33166745ad2092f74f09638567c4488fae353699
parentd2ab0c1aafa51aff660c914a0a7ec520274161f7 (diff)
downloadjenkins.debian.net-1e939b9b5d8973003f6e58fb92a38b1b20e48b7c.tar.xz
run all cores for building
-rwxr-xr-xbin/d-i_build.sh3
-rwxr-xr-xbin/d-i_manual.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh
index 4608c1b9..d178dd6e 100755
--- a/bin/d-i_build.sh
+++ b/bin/d-i_build.sh
@@ -54,7 +54,8 @@ pdebuild_package() {
#
# build
#
- pdebuild --use-pdebuild-internal
+ NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
+ pdebuild --use-pdebuild-internal --debbuildopts "-j$NUM_CPU"
}
init_workspace
diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index b9f2e634..78c9c539 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -39,7 +39,8 @@ pdebuild_package() {
# build
#
cd manual
- pdebuild --use-pdebuild-internal
+ NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
+ pdebuild --use-pdebuild-internal --debbuildopts "-j$NUM_CPU"
cd ..
}