chiark / gitweb /
Add version build to engine.
authordaid <daid303@gmail.com>
Mon, 10 Mar 2014 09:29:39 +0000 (10:29 +0100)
committerdaid <daid303@gmail.com>
Mon, 10 Mar 2014 09:29:39 +0000 (10:29 +0100)
package.sh

index 9a52e9321b74fe2ae3579e1b40db8ce3b6d6c1ab..1cf6f2aa7557fdf5bb4823554e1cd3e71cafcf25 100755 (executable)
@@ -119,7 +119,7 @@ if [ "$BUILD_TARGET" = "darwin" ]; then
        rm -rf CuraEngine
        git clone ${CURA_ENGINE_REPO}
     if [ $? != 0 ]; then echo "Failed to clone CuraEngine"; exit 1; fi
-       make -C CuraEngine
+       make -C CuraEngine VERSION=${BUILD_NAME}
     if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi
        cp CuraEngine/CuraEngine scripts/darwin/dist/Cura.app/Contents/Resources/CuraEngine
 
@@ -162,7 +162,7 @@ if [ "$BUILD_TARGET" = "debian_i386" ]; then
        rm -rf CuraEngine
        git clone ${CURA_ENGINE_REPO}
     if [ $? != 0 ]; then echo "Failed to clone CuraEngine"; exit 1; fi
-       make -C CuraEngine
+       make -C CuraEngine VERSION=${BUILD_NAME}
     if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi
        rm -rf scripts/linux/${BUILD_TARGET}/usr/share/cura
        mkdir -p scripts/linux/${BUILD_TARGET}/usr/share/cura
@@ -301,7 +301,7 @@ if [ $BUILD_TARGET = "win32" ]; then
        rm -rf ${TARGET_DIR}/python/Lib/OpenGL/DLLS/gle*
 
     #Build the C++ engine
-       mingw32-make -C CuraEngine
+       mingw32-make -C CuraEngine VERSION=${BUILD_NAME}
     if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi
 fi