From cf6ed26936403c70f6356e30bb9eef095b7270e8 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 9 Oct 2017 05:47:03 +0100 Subject: [PATCH] buildsystem: eliminate unecessary grep usage --- config/options | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/options b/config/options index cc20c5204d..9743925ee8 100644 --- a/config/options +++ b/config/options @@ -73,9 +73,7 @@ fi # Concurrency make level (-j option) # Try value 1 (default) to 4 on single CPU computer, or more on # multi-processor computer (like hyperthreading SMP CPU) - if test -z "${CONCURRENCY_MAKE_LEVEL}"; then - CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'` - fi + [ -z "${CONCURRENCY_MAKE_LEVEL}" ] && export CONCURRENCY_MAKE_LEVEL=$(grep -c '^processor[[:cntrl:]]*:' /proc/cpuinfo) # cache size for ccache # Set the maximum size of the files stored in the cache. You can specify a