summaryrefslogtreecommitdiff
path: root/scripts/macosx-build-dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/macosx-build-dependencies.sh')
-rwxr-xr-xscripts/macosx-build-dependencies.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh
index 68b8200..564c93e 100755
--- a/scripts/macosx-build-dependencies.sh
+++ b/scripts/macosx-build-dependencies.sh
@@ -17,8 +17,8 @@
# o Port to other platforms?
#
-BASEDIR=/Users/kintel/code/OpenSCAD/libraries
-OPENSCADDIR=/Users/kintel/code/OpenSCAD/openscad
+BASEDIR=$PWD/../libraries
+OPENSCADDIR=$PWD
SRCDIR=$BASEDIR/src
DEPLOYDIR=$BASEDIR/install
@@ -199,6 +199,11 @@ build_opencsg()
make install
}
+if [ ! -f $OPENSCADDIR/openscad.pro ]; then
+ echo "Must be run from the OpenSCAD source root directory"
+ exit 0
+fi
+
echo "Using basedir:" $BASEDIR
mkdir -p $SRCDIR $DEPLOYDIR
build_gmp 5.0.3
contact: Jan Huwald // Impressum