diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-07-11 04:48:29 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-07-11 04:48:29 (GMT) |
commit | bf22cef8d94defb615bb5c3ee17d827d94704b8e (patch) | |
tree | 5d3d09b239a4be8f064271bd82d8c2b3a88d98d0 /scripts | |
parent | 4440cb81f98f9723cfb6d1a971a1dcc8fc8d44a9 (diff) |
rewrite to be compatible with ubuntu 'dash' shell
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/linux-build-dependencies.sh | 20 | ||||
-rwxr-xr-x | scripts/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 |