Do not update symlink if not needed in ChangeAppSettings.sh

This commit is contained in:
pelya
2010-07-21 15:02:55 +03:00
parent aaf9ea3eb0
commit 9e5a7ee53c

View File

@@ -153,8 +153,10 @@ done
ReadmeText="`echo $ReadmeText | sed 's/\"/\\\\\\\\\"/g' | sed 's/[&%]//g'`"
echo Creating symlink to libSDL
rm -f project/jni/sdl
ln -s ../sdl/sdl-$LibSdlVersion project/jni/sdl
if [ "`readlink project/jni/sdl`" '!=' "../sdl/sdl-$LibSdlVersion" ]; then
rm -f project/jni/sdl
ln -s ../sdl/sdl-$LibSdlVersion project/jni/sdl
fi
echo Patching project/AndroidManifest.xml
cat project/AndroidManifest.xml | \