Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawrence D'Oliveiro <from-blender@geek-central.gen.nz>2014-02-27 13:01:05 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-02-27 13:02:13 +0400
commit317f29d753ae601d9c4817769059c7fb2aadfbd1 (patch)
treed9d636d722467de645dab467b79a2ff5894efdf7 /build_files
parent17d2e6422cfac5c1fe2f66dba94ad76212876eca (diff)
Resubmission: Avoid UUOC in install_deps.sh
This is a resubmission of the original patch from D255. Sorry, I didn’t understand that subsequent patches added to a diff are considered to //override// previous ones, rather than add to them. Basically the comment for commit rB554eca1c288e has been applied to the wrong patch. Reviewers: mont29 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D359
Diffstat (limited to 'build_files')
-rwxr-xr-xbuild_files/build_environment/install_deps.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh
index 1fadf987b0f..65fbd1bb002 100755
--- a/build_files/build_environment/install_deps.sh
+++ b/build_files/build_environment/install_deps.sh
@@ -45,10 +45,7 @@ WITH_ALL=false
# Do not yet enable opencollada, use --with-opencollada (or --with-all) option to try it.
WITH_OPENCOLLADA=false
-THREADS=`cat /proc/cpuinfo | grep processor | wc -l`
-if [ -z "$THREADS" ]; then
- THREADS=1
-fi
+THREADS=$(nproc)
COMMON_INFO="\"Source code of dependencies needed to be compiled will be downloaded and extracted into '\$SRC'.
Built libs of dependencies needed to be compiled will be installed into '\$INST'.