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
|
APPDIR=$KIVYIOSROOT/app-$APPID
|
||||||
SRCDIR=$2
|
SRCDIR=$2
|
||||||
|
|
||||||
|
set -x
|
||||||
if [ "X$APPNAME" == "X" ]; then
|
if [ "X$APPNAME" == "X" ]; then
|
||||||
echo $(basename $0) "<appname> <source directory>"
|
echo $(basename $0) "<appname> <source directory>"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -24,13 +25,8 @@ fi
|
||||||
echo "-> Copy $SRCDIR to $APPDIR/YourApp"
|
echo "-> Copy $SRCDIR to $APPDIR/YourApp"
|
||||||
YOURAPPDIR=$APPDIR/YourApp
|
YOURAPPDIR=$APPDIR/YourApp
|
||||||
|
|
||||||
echo "-> Remove any previous YourApp version"
|
echo "-> Synchronize source code"
|
||||||
if [ -e $YOURAPPDIR ]; then
|
try rsync -av --delete $SRCDIR $YOURAPPDIR
|
||||||
rm -r $YOURAPPDIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "-> Copy the new source"
|
|
||||||
try cp -a $SRCDIR $YOURAPPDIR
|
|
||||||
|
|
||||||
echo "-> Compile to pyo"
|
echo "-> Compile to pyo"
|
||||||
$TMPROOT/Python-$PYTHON_VERSION/hostpython -OO -m compileall $YOURAPPDIR
|
$TMPROOT/Python-$PYTHON_VERSION/hostpython -OO -m compileall $YOURAPPDIR
|
||||||
|
|
Loading…
Reference in a new issue