Fixes for TeeWorlds compilation

This commit is contained in:
pelya
2012-08-06 12:22:30 +03:00
parent 3aa5c522e6
commit e8634e343b
7 changed files with 20 additions and 19 deletions
+6 -9
View File
@@ -923,17 +923,14 @@ mkdir -p project/assets
rm -f project/assets/*
if [ -d "project/jni/application/src/AndroidData" ] ; then
echo Copying asset files
for F in project/jni/application/src/AndroidData/*; do
if [ `cat $F | wc -c` -gt 1048576 ] ; then
echo "Error: the file $F is bigger than 1048576 bytes - some Android devices will fail to extract such file"
echo "Please use HTTP download method, or split your data into several small files with command:"
echo "split -b 1000000 -d data.zip data.zip"
echo "It will create files data.zip00, data.zip01 etc, and SDL will try to search for such files in assets when unpacking data.zip"
exit 1
fi
done
cp project/jni/application/src/AndroidData/* project/assets/
ln -s ../libs/armeabi/stdout-test project/assets/
for F in project/assets/*; do
if [ `cat $F | wc -c` -gt 1000000 ] ; then
echo "The file $F is bigger than 1 megabyte - splitting it into smaller chunks"
split -b 1000000 -d $F $F && rm $F || { echo "Error: 'split' command not installed" ; exit 1 ; }
fi
done
fi
echo Done