[Qa-jenkins-scm] [jenkins.debian.net] 01/03: use less pipes
Holger Levsen
holger at moszumanska.debian.org
Thu Jun 11 17:48:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit c25b533d22ad666c08a20d84285212b6fd3c88ee
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Jun 11 19:31:06 2015 +0200
use less pipes
---
bin/d-i_build.sh | 2 +-
bin/d-i_manual.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh
index 2e189d1..36c3a52 100755
--- a/bin/d-i_build.sh
+++ b/bin/d-i_build.sh
@@ -67,7 +67,7 @@ pdebuild_package() {
SOURCE=$(dpkg-parsechangelog |grep ^Source: | cut -d " " -f2)
# workaround #767260 (console-setup doesn't support parallel build)
if [ "$SOURCE" != "console-setup" ] ; then
- NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l)
+ NUM_CPU=$(grep -c '^processor' /proc/cpuinfo)
else
NUM_CPU=1
fi
diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index 01a9f14..ce00d90 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -46,7 +46,7 @@ pdebuild_package() {
# build
#
cd manual
- NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l)
+ NUM_CPU=$(grep -c '^processor' /proc/cpuinfo)
pdebuild --use-pdebuild-internal --debbuildopts "-j$NUM_CPU" -- --http-proxy $http_proxy
#
# publish and cleanup
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list