Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 18 Jul 2016 22:01:01 +0200
changeset 10200 c678dcec4f44
parent 10199 6ab154366a9b
child 10201 4b0ac1c3fcf8
Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!). Fixes Bugzilla #2429.
build-scripts/androidbuild.sh
--- a/build-scripts/androidbuild.sh	Sun Jul 17 21:43:12 2016 +0200
+++ b/build-scripts/androidbuild.sh	Mon Jul 18 22:01:01 2016 +0200
@@ -87,8 +87,8 @@
 fi
 
 cp -r $SDLPATH/Android.mk $BUILDPATH/jni/SDL
-sed -i "s|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/jni/src/Android.mk
-sed -i "s|org\.libsdl\.app|$APP|g" $BUILDPATH/AndroidManifest.xml
+sed -i -e "s|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/jni/src/Android.mk
+sed -i -e "s|org\.libsdl\.app|$APP|g" $BUILDPATH/AndroidManifest.xml
 
 # Copy user sources
 for src in "${SOURCES[@]}"
@@ -105,8 +105,8 @@
 done
 
 ACTIVITY="${folder}Activity"
-sed -i "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
-sed -i "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
+sed -i -e "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
+sed -i -e "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
 
 # Fill in a default Activity
 echo "package $APP;" >  "$ACTIVITY.java"