modify build script to update Printrun instead of cloning it at each build

This commit is contained in:
Alexandre Girard 2012-03-15 18:15:30 +08:00 committed by daid
parent 1b39f91a75
commit 9d9ac55cb8

View File

@ -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