chiark / gitweb /
modify build script to update Printrun instead of cloning it at each build
authorAlexandre Girard <git@alexgirard.com>
Thu, 15 Mar 2012 10:15:30 +0000 (18:15 +0800)
committerdaid <daid303@gmail.com>
Thu, 15 Mar 2012 10:18:15 +0000 (18:18 +0800)
build.sh

index d3e1acd4653e349f1c6e41de5ed3f7d4d4d0cdb8..8421085ac2496dbd6c24f0a4fafa79f6a6aec884 100755 (executable)
--- 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