diff options
author | Joey Hess <joey@kitenet.net> | 2013-02-22 16:20:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-02-22 16:23:59 -0400 |
commit | 3ab2653a41f0f8b0321a637a65e57e410a06523a (patch) | |
tree | 7275c45bfdc366a971b38aaccd9db119eb319a49 /standalone | |
parent | 60ac3d17d5a9fe3882b62ea47e50b82796f6c0b6 (diff) |
fixes
Diffstat (limited to 'standalone')
-rwxr-xr-x | standalone/android/runshell | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell index 2f591fcd2..a10791862 100755 --- a/standalone/android/runshell +++ b/standalone/android/runshell @@ -13,14 +13,15 @@ base="$(pwd)" HOME="/sdcard/git-annex.home" export HOME -# As good a start point as any. -cd "$HOME" - setup () { echo "Installation starting to $base" cat "$base/lib/lib.version.so" + if [ -e "$base/bin" ]; then + mv "$base/bin" "$base/bin.old" + fi mkdir -p "$base/bin" + for prog in busybox git-annex git-shell git-upload-pack git gpg rsync ssh ssh-keygen; do echo "installing $prog" if [ -e "$base/bin/$prog" ]; then @@ -29,14 +30,14 @@ setup () { ln "$base/lib/lib.$prog.so" "$base/bin/$prog" done - mkdir -p "$base/bin.new" - $base/bin/busybox --install $base/bin.new - mv $base/bin.new/* $base/bin - rmdir "$base/bin.new" + $base/bin/busybox --install $base/bin + $base/bin/rm -rf "$base/bin.old" + + cd "$base" $base/bin/tar zxf $base/lib/lib.git.tar.gz.so for prog in git git-shell git-upload-pack; do - for link in $(cat $base/links/$prog); do + for link in $(cat "$base/links/$prog"); do echo "linking $link to $prog" if [ -e "$base/$link" ]; then rm "$base/$link" @@ -67,6 +68,9 @@ elif [ ! -e "$base/installed-version" ] || ! cmp "$base/installed-version" "$bas fi fi +# As good a start point as any. +cd "$HOME" + PATH="$base/bin:$PATH" export PATH |