Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1187)

Unified Diff: src/scripts/build_platform_packages.sh

Issue 501153: Simplified counting CPUs. (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/build_kernel.sh ('k') | src/scripts/common.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_platform_packages.sh
diff --git a/src/scripts/build_platform_packages.sh b/src/scripts/build_platform_packages.sh
index b911c50426fc6532ce7cbd080d3893cfdf4c1164..3ac5f7c854093018953dcb66428cbeb044cb94a1 100755
--- a/src/scripts/build_platform_packages.sh
+++ b/src/scripts/build_platform_packages.sh
@@ -22,7 +22,7 @@ eval set -- "${FLAGS_ARGV}"
set -e
# Number of jobs for scons calls.
-NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'`
+NUM_JOBS=`grep -c "^processor" /proc/cpuinfo`
PLATFORM_DIR="$SRC_ROOT/platform"
« no previous file with comments | « src/scripts/build_kernel.sh ('k') | src/scripts/common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698