From 9d9ac55cb8fc6ddf341efe570387381b82231f78 Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Thu, 15 Mar 2012 18:15:30 +0800 Subject: [PATCH] modify build script to update Printrun instead of cloning it at each build --- build.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 -- 2.30.2