chiark / gitweb /
Fix package.sh to update Power and CuraEngine, rather that failing to clone them...
authorAdam Goldsmith <adamgoldsmith1217@gmail.com>
Sun, 29 Sep 2013 11:52:56 +0000 (07:52 -0400)
committerAdam Goldsmith <adamgoldsmith1217@gmail.com>
Sun, 29 Sep 2013 11:57:46 +0000 (07:57 -0400)
package.sh

index abf9fb8920755ea780c367b8c537b1c5ba47fdd2..6b4d47b7a649408fe4e377563a839ea8cef2f504 100755 (executable)
@@ -138,8 +138,20 @@ fi
 #############################
 
 if [ "$BUILD_TARGET" = "debian" ]; then
-       git clone https://github.com/GreatFruitOmsk/Power
-       git clone https://github.com/Ultimaker/CuraEngine
+       if [ ! -d "Power" ]; then
+               git clone https://github.com/GreatFruitOmsk/Power
+       else
+               cd Power
+               git pull
+               cd ..
+       fi
+       if [ ! -d "CuraEngine" ]; then
+               git clone https://github.com/Ultimaker/CuraEngine
+       else
+               cd CuraEngine
+               git pull
+               cd ..
+       fi
        make -C CuraEngine
        rm -rf scripts/linux/debian/usr/share/cura
        mkdir -p scripts/linux/debian/usr/share/cura