2 android bug fixes
This commit is contained in:
parent
3e9db00d2d
commit
1e515b76b3
4 changed files with 15 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -17,6 +17,8 @@ git-annex (5.20131121) UNRELEASED; urgency=low
|
||||||
* Bug fix: annex.version did not get set on automatic
|
* Bug fix: annex.version did not get set on automatic
|
||||||
upgrade to v5 direct mode repo, so the upgrade was performed
|
upgrade to v5 direct mode repo, so the upgrade was performed
|
||||||
repeatedly, slowing commands down.
|
repeatedly, slowing commands down.
|
||||||
|
* Android: Fix stripping of the git-annex binary.
|
||||||
|
* Android: Make terminal app show git-annex version number.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Wed, 20 Nov 2013 18:30:47 -0400
|
-- Joey Hess <joeyh@debian.org> Wed, 20 Nov 2013 18:30:47 -0400
|
||||||
|
|
||||||
|
|
|
@ -20,3 +20,5 @@ android
|
||||||
|
|
||||||
# End of transcript or log.
|
# End of transcript or log.
|
||||||
"""]]
|
"""]]
|
||||||
|
|
||||||
|
> [[fixed|done]] --[[Joey]]
|
||||||
|
|
|
@ -35,3 +35,7 @@ Last-Modified: Mon, 18 Nov 2013 11:57:25 GMT
|
||||||
|
|
||||||
# End of transcript or log.
|
# End of transcript or log.
|
||||||
"""]]
|
"""]]
|
||||||
|
|
||||||
|
> Seems that I lost stripping of the git-annex binary when adding the build
|
||||||
|
> for the newer android versions. [[fixed|done]] (There is not otherwise
|
||||||
|
> much way to shrink the size.) --[[Joey]]
|
||||||
|
|
|
@ -15,6 +15,8 @@ GIT_ANNEX_ANDROID_SOURCETREE?=$(HOME)/.android/git-annex-sourcetree
|
||||||
|
|
||||||
GITTREE=$(GIT_ANNEX_ANDROID_SOURCETREE)/git/installed-tree
|
GITTREE=$(GIT_ANNEX_ANDROID_SOURCETREE)/git/installed-tree
|
||||||
|
|
||||||
|
VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<../../CHANGELOG)
|
||||||
|
|
||||||
build: start
|
build: start
|
||||||
if [ ! -e "$(GIT_ANNEX_ANDROID_SOURCETREE)" ]; then $(MAKE) source; fi
|
if [ ! -e "$(GIT_ANNEX_ANDROID_SOURCETREE)" ]; then $(MAKE) source; fi
|
||||||
$(MAKE) $(GIT_ANNEX_ANDROID_SOURCETREE)/openssl/build-stamp
|
$(MAKE) $(GIT_ANNEX_ANDROID_SOURCETREE)/openssl/build-stamp
|
||||||
|
@ -25,6 +27,8 @@ build: start
|
||||||
$(MAKE) $(GIT_ANNEX_ANDROID_SOURCETREE)/git/build-stamp
|
$(MAKE) $(GIT_ANNEX_ANDROID_SOURCETREE)/git/build-stamp
|
||||||
$(MAKE) $(GIT_ANNEX_ANDROID_SOURCETREE)/term/build-stamp
|
$(MAKE) $(GIT_ANNEX_ANDROID_SOURCETREE)/term/build-stamp
|
||||||
|
|
||||||
|
perl -i -pe 's/(android:versionName=)"[^"]+"/$$1"'$(VER)'"/' $(GIT_ANNEX_ANDROID_SOURCETREE)/term/AndroidManifest.xml
|
||||||
|
|
||||||
# Debug build because it does not need signing keys.
|
# Debug build because it does not need signing keys.
|
||||||
cd $(GIT_ANNEX_ANDROID_SOURCETREE)/term && tools/build-debug
|
cd $(GIT_ANNEX_ANDROID_SOURCETREE)/term && tools/build-debug
|
||||||
|
|
||||||
|
@ -76,10 +80,12 @@ build: start
|
||||||
mkdir -p ../../tmp/4.0 ../../tmp/4.3
|
mkdir -p ../../tmp/4.0 ../../tmp/4.3
|
||||||
|
|
||||||
cp ../../tmp/androidtree/dist/build/git-annex/4.3/git-annex $(GIT_ANNEX_ANDROID_SOURCETREE)/term/libs/armeabi/lib.git-annex.so
|
cp ../../tmp/androidtree/dist/build/git-annex/4.3/git-annex $(GIT_ANNEX_ANDROID_SOURCETREE)/term/libs/armeabi/lib.git-annex.so
|
||||||
|
arm-linux-androideabi-strip --strip-unneeded --remove-section=.comment --remove-section=.note $(GIT_ANNEX_ANDROID_SOURCETREE)/term/libs/armeabi/lib.git-annex.so
|
||||||
cd $(GIT_ANNEX_ANDROID_SOURCETREE)/term && ant debug
|
cd $(GIT_ANNEX_ANDROID_SOURCETREE)/term && ant debug
|
||||||
cp $(GIT_ANNEX_ANDROID_SOURCETREE)/term/bin/Term-debug.apk ../../tmp/4.3/git-annex.apk
|
cp $(GIT_ANNEX_ANDROID_SOURCETREE)/term/bin/Term-debug.apk ../../tmp/4.3/git-annex.apk
|
||||||
|
|
||||||
cp ../../tmp/androidtree/dist/build/git-annex/4.0/git-annex $(GIT_ANNEX_ANDROID_SOURCETREE)/term/libs/armeabi/lib.git-annex.so
|
cp ../../tmp/androidtree/dist/build/git-annex/4.0/git-annex $(GIT_ANNEX_ANDROID_SOURCETREE)/term/libs/armeabi/lib.git-annex.so
|
||||||
|
arm-linux-androideabi-strip --strip-unneeded --remove-section=.comment --remove-section=.note $(GIT_ANNEX_ANDROID_SOURCETREE)/term/libs/armeabi/lib.git-annex.so
|
||||||
cd $(GIT_ANNEX_ANDROID_SOURCETREE)/term && ant debug
|
cd $(GIT_ANNEX_ANDROID_SOURCETREE)/term && ant debug
|
||||||
cp $(GIT_ANNEX_ANDROID_SOURCETREE)/term/bin/Term-debug.apk ../../tmp/4.0/git-annex.apk
|
cp $(GIT_ANNEX_ANDROID_SOURCETREE)/term/bin/Term-debug.apk ../../tmp/4.0/git-annex.apk
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue