summaryrefslogtreecommitdiff
path: root/scripts/linux-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-07-11 04:48:29 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-07-11 04:48:29 (GMT)
commitbf22cef8d94defb615bb5c3ee17d827d94704b8e (patch)
tree5d3d09b239a4be8f064271bd82d8c2b3a88d98d0 /scripts/linux-build-dependencies.sh
parent4440cb81f98f9723cfb6d1a971a1dcc8fc8d44a9 (diff)
rewrite to be compatible with ubuntu 'dash' shell
Diffstat (limited to 'scripts/linux-build-dependencies.sh')
-rwxr-xr-xscripts/linux-build-dependencies.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/linux-build-dependencies.sh b/scripts/linux-build-dependencies.sh
index 0faf67a..bfc7880 100755
--- a/scripts/linux-build-dependencies.sh
+++ b/scripts/linux-build-dependencies.sh
@@ -205,7 +205,7 @@ if [ ! -f $OPENSCADDIR/openscad.pro ]; then
exit 0
fi
-source ./scripts/setenv-linbuild.sh
+. ./scripts/setenv-linbuild.sh # '.' is equivalent to 'source'
SRCDIR=$BASEDIR/src
DEPLOYDIR=$BASEDIR
if [ ! $NUMCPU ]; then
@@ -219,7 +219,7 @@ fi
echo "Using basedir:" $BASEDIR
echo "Using deploydir:" $DEPLOYDIR
echo "Using srcdir:" $SRCDIR
-echo "Number of CPUs for parallel builds:" $NUMCPU
+echo "Number of CPUs for parallel builds:" $NUMCPU "(export NUMCPU=x to modify)"
mkdir -p $SRCDIR $DEPLOYDIR
if [ ! "`command -v curl`" ]; then
@@ -234,13 +234,15 @@ fi
# Singly build CGAL or OpenCSG
# (Most systems have all libraries available as packages except CGAL/OpenCSG)
# (They can be built singly here by passing a command line arg to the script)
-if [ $1 = "cgal-use-sys-libs" ]; then
- build_cgal 4.0 use-sys-libs
- exit
-fi
-if [ $1 = "opencsg" ]; then
- build_opencsg 1.3.2
- exit
+if [ $1 ]; then
+ if [ $1 = "cgal-use-sys-libs" ]; then
+ build_cgal 4.0 use-sys-libs
+ exit
+ fi
+ if [ $1 = "opencsg" ]; then
+ build_opencsg 1.3.2
+ exit
+ fi
fi
contact: Jan Huwald // Impressum