summaryrefslogtreecommitdiff
path: root/scripts/setenv-unibuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/setenv-unibuild.sh')
-rw-r--r--scripts/setenv-unibuild.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/setenv-unibuild.sh b/scripts/setenv-unibuild.sh
index ba99235..19d37f9 100644
--- a/scripts/setenv-unibuild.sh
+++ b/scripts/setenv-unibuild.sh
@@ -11,7 +11,15 @@
setenv_common()
{
if [ ! $BASEDIR ]; then
- BASEDIR=$HOME/openscad_deps
+ if [ -f openscad.pro ]; then
+ # if in main openscad dir, put under $HOME
+ BASEDIR=$HOME/openscad_deps
+ else
+ # otherwise, assume its being run 'out of tree'. treat it somewhat like
+ # "configure" or "cmake", so you can build dependencies where u wish.
+ echo "Not in OpenSCAD dir... using current directory as base of build"
+ BASEDIR=$PWD
+ fi
fi
DEPLOYDIR=$BASEDIR
contact: Jan Huwald // Impressum