summaryrefslogtreecommitdiff
path: root/scripts/setenv-unibuild.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-12-20 17:55:13 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-12-20 17:55:13 (GMT)
commitf5cb2ecb3053180d3096e729cc8b0f774d79b1f3 (patch)
treeae152192285d984bc3964b7931aa9d884ad31ca2 /scripts/setenv-unibuild.sh
parent29c3699e0a0660a315be6b0e312075cbdf3c2fc0 (diff)
enable 'out of tree' call of dependency scripts. fix old ubuntu detection.
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