Support symlinking git-annex and git-annex-shell from the Linux standalone bundle into PATH.

Unless busybox doesn't support readlink -f, then it just uses readlink and
symlinking won't work. Also, OSX has no readlink -f so not done there.

Thanks, jlebar.
This commit is contained in:
Joey Hess 2014-05-16 16:22:50 -04:00
parent c34b5e09f8
commit 5903d20d5e
8 changed files with 10 additions and 7 deletions

3
debian/changelog vendored
View file

@ -16,6 +16,9 @@ git-annex (5.20140422) UNRELEASED; urgency=medium
of a repository.
* Add remote.$name.annex-shell configuration.
Thanks, Fraser Tweedale
* Support symlinking git-annex and git-annex-shell
from the Linux standalone bundle into PATH.
Thanks, jlebar.
-- Joey Hess <joeyh@debian.org> Fri, 02 May 2014 15:28:53 -0300

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else

View file

@ -1,5 +1,5 @@
#!/bin/sh
link="$(readlink "$0")" || true
link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true
if [ -n "$link" ]; then
base="$(dirname "$link")"
else