[Libreoffice-commits] .: android/Bootstrap

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 25 07:48:40 PST 2012


 android/Bootstrap/Makefile.shared |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit ae6431798edd4f73892df746adb7795a645a9e99
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sun Nov 25 17:36:50 2012 +0200

    Make the android_version_setup work better
    
    Change-Id: Ibc8f9df533c1fef3c1e428e62622ac2c56552498

diff --git a/android/Bootstrap/Makefile.shared b/android/Bootstrap/Makefile.shared
index 75beab6..83e9b6a 100644
--- a/android/Bootstrap/Makefile.shared
+++ b/android/Bootstrap/Makefile.shared
@@ -40,14 +40,13 @@ endef
 #
 $(BOOTSTRAPDIR)/no-resource-compress.xml :
 	( \
-	android_sdk_ver=`grep 'Pkg.Revision' /opt/libreoffice/android-sdk-linux/tools/source.properties | sed 's/^.*=//' | sed 's/\..*//'` ; \
-	echo "Android SDK version is: $$android_sdk_ver"; \
-	cp -a $(BOOTSTRAPDIR)/no-resource-compress-$$android_sdk_ver.xml $(BOOTSTRAPDIR)/no-resource-compress.xml ; \
+	android_sdk_ver=`grep 'Pkg.Revision' $(ANDROID_SDK_HOME)/tools/source.properties | sed 's/^.*=//' | sed 's/\..*//'` ; \
+	cp $(BOOTSTRAPDIR)/no-resource-compress-$$android_sdk_ver.xml $(BOOTSTRAPDIR)/no-resource-compress.xml ; \
 	if ! test -f $(BOOTSTRAPDIR)/no-resource-compress.xml; then \
-	   echo "Unknown Android SDK version: $$android_sdk_ver - failing hard" \
+	   echo "Unknown Android SDK version: $$android_sdk_ver"; \
 	   exit 1; \
 	fi \
-	) || exit 1
+	)
 
 android_version_setup : $(BOOTSTRAPDIR)/no-resource-compress.xml
 
@@ -67,7 +66,7 @@ install: build-ant
 uninstall:
 	$(ANDROID_SDK_HOME)/platform-tools/adb uninstall $(APP_PACKAGE)
 
-clean: properties
+clean: android_version_setup properties
 	$(ANT) clean
 	rm -rf assets libs $(SODEST) $(OBJLOCAL) $(BOOTSTRAPDIR)/no-resource-compress.xml
 


More information about the Libreoffice-commits mailing list