From 6fde75cfa38a311d0d6d520ec29f54b57dc0fe41 Mon Sep 17 00:00:00 2001 From: Gary Kramlich Date: Mon, 21 Oct 2013 00:25:54 -0500 Subject: [PATCH] Made the CuraEngine repo configurable * Added a check for the environment variable CURA_ENGINE_REPO, if it's not set use https://github.com/Ultimaker/CuraEngine otherwise try to use whatever it's set to --- package.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package.sh b/package.sh index 068333fa..67178737 100755 --- a/package.sh +++ b/package.sh @@ -23,6 +23,11 @@ TARGET_DIR=Cura-${BUILD_NAME}-${BUILD_TARGET} ##Which versions of external programs to use WIN_PORTABLE_PY_VERSION=2.7.2.1 +##Which CuraEngine to use +if [ -z ${CURA_ENGINE_REPO} ] ; then + CURA_ENGINE_REPO="https://github.com/Ultimaker/CuraEngine" +fi + ############################# # Support functions ############################# @@ -106,7 +111,7 @@ if [ "$BUILD_TARGET" = "darwin" ]; then #Add cura version file (should read the version from the bundle with pyobjc, but will figure that out later) echo $BUILD_NAME > scripts/darwin/dist/Cura.app/Contents/Resources/version rm -rf CuraEngine - git clone https://github.com/Ultimaker/CuraEngine + git clone ${CURA_ENGINE_REPO} make -C CuraEngine cp CuraEngine/CuraEngine scripts/darwin/dist/Cura.app/Contents/Resources/CuraEngine @@ -146,7 +151,7 @@ if [ "$BUILD_TARGET" = "debian" ]; then cd .. fi rm -rf CuraEngine - git clone https://github.com/Ultimaker/CuraEngine + git clone ${CURA_ENGINE_REPO} make -C CuraEngine rm -rf scripts/linux/debian/usr/share/cura mkdir -p scripts/linux/debian/usr/share/cura @@ -186,7 +191,7 @@ if [ $BUILD_TARGET = "win32" ]; then rm -rf Power git clone https://github.com/GreatFruitOmsk/Power rm -rf CuraEngine - git clone https://github.com/Ultimaker/CuraEngine + git clone ${CURA_ENGINE_REPO} fi ############################# -- 2.30.2