use rsync to populate the project instead of rm + cp -a
This commit is contained in:
parent
c96e9f72f2
commit
3d6297e6fc
1 changed files with 3 additions and 7 deletions
|
@ -11,6 +11,7 @@ APPID=$(echo $APPNAME | tr '[A-Z]' '[a-z]')
|
|||
APPDIR=$KIVYIOSROOT/app-$APPID
|
||||
SRCDIR=$2
|
||||
|
||||
set -x
|
||||
if [ "X$APPNAME" == "X" ]; then
|
||||
echo $(basename $0) "<appname> <source directory>"
|
||||
exit 1
|
||||
|
@ -24,13 +25,8 @@ fi
|
|||
echo "-> Copy $SRCDIR to $APPDIR/YourApp"
|
||||
YOURAPPDIR=$APPDIR/YourApp
|
||||
|
||||
echo "-> Remove any previous YourApp version"
|
||||
if [ -e $YOURAPPDIR ]; then
|
||||
rm -r $YOURAPPDIR
|
||||
fi
|
||||
|
||||
echo "-> Copy the new source"
|
||||
try cp -a $SRCDIR $YOURAPPDIR
|
||||
echo "-> Synchronize source code"
|
||||
try rsync -av --delete $SRCDIR $YOURAPPDIR
|
||||
|
||||
echo "-> Compile to pyo"
|
||||
$TMPROOT/Python-$PYTHON_VERSION/hostpython -OO -m compileall $YOURAPPDIR
|
||||
|
|
Loading…
Reference in a new issue