summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/linux-build-dependencies.sh20
-rwxr-xr-xscripts/opensuse-build-dependencies.sh (renamed from scripts/opensuse-get-dependencies.sh)0
2 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
diff --git a/scripts/opensuse-get-dependencies.sh b/scripts/opensuse-build-dependencies.sh
index 623d7d0..623d7d0 100755
--- a/scripts/opensuse-get-dependencies.sh
+++ b/scripts/opensuse-build-dependencies.sh
contact: Jan Huwald // Impressum