From: Alexandre Girard Date: Thu, 15 Mar 2012 10:15:30 +0000 (+0800) Subject: modify build script to update Printrun instead of cloning it at each build X-Git-Tag: RC1~89 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9d9ac55cb8fc6ddf341efe570387381b82231f78;p=cura.git modify build script to update Printrun instead of cloning it at each build --- diff --git a/build.sh b/build.sh index d3e1acd4..8421085a 100755 --- a/build.sh +++ b/build.sh @@ -82,9 +82,14 @@ else fi #Get our own version of Printrun -rm -rf Printrun -git clone git://github.com/daid/Printrun.git -rm -rf Printrun/.git +if [ ! -d "Printrun" ]; then + git clone git://github.com/daid/Printrun.git +else + echo "Updating Printrun" + cd Printrun + git pull + cd .. +fi ############################# # Build the packages @@ -135,7 +140,8 @@ rm -rf ${TARGET_DIR}/pypy/lib-python/2.7/test cp -a SkeinPyPy_NewUI ${TARGET_DIR}/SkeinPyPy #add printrun -mv Printrun ${TARGET_DIR}/Printrun +cp -a Printrun ${TARGET_DIR}/Printrun +rm -rf ${TARGET_DIR}/Printrun/.git* #add script files if [ $BUILD_TARGET = "win32" ]; then