chiark / gitweb /
Made the CuraEngine repo configurable
authorGary Kramlich <grim@reaperworld.com>
Mon, 21 Oct 2013 05:25:54 +0000 (00:25 -0500)
committerGary Kramlich <grim@reaperworld.com>
Mon, 21 Oct 2013 05:25:54 +0000 (00:25 -0500)
  * 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

index 068333fa514d8534f500830e5dde6d7bda746208..671787373eb835167d9f93f32f3ebd3645fd3ca5 100755 (executable)
@@ -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
 
 #############################