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

Unified Diff: src/scripts/build_chrome.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 | « no previous file | src/scripts/build_kernel.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_chrome.sh
diff --git a/src/scripts/build_chrome.sh b/src/scripts/build_chrome.sh
index a834839e5d05b8c12e8b2af8aeb7e6a60cfc0e35..9e52fc8a9a2d30c90e9e4275735fe694c75a3ed0 100755
--- a/src/scripts/build_chrome.sh
+++ b/src/scripts/build_chrome.sh
@@ -20,7 +20,7 @@ DEFAULT_CHROME_DIR="${CHROMEOS_CHROME_DIR:-/home/$USER/chrome}"
# The number of jobs to pass to tools that can run in parallel (such as make
# and dpkg-buildpackage
-NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'`
+NUM_JOBS=`grep -c "^processor" /proc/cpuinfo`
# Flags
DEFINE_string chrome_dir "$DEFAULT_CHROME_DIR" \
« no previous file with comments | « no previous file | src/scripts/build_kernel.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698