summaryrefslogtreecommitdiff
path: root/standalone/osx/git-annex.app/Contents/MacOS/runshell
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-20 14:01:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-20 14:01:05 -0400
commitf0ddd43b17443d9a0f9abe55e787a6235c5bdd49 (patch)
treeb239f9ebd3551214f7fb9a8c8d2fe80ed8e840fb /standalone/osx/git-annex.app/Contents/MacOS/runshell
parent9ae1750c68ca5645e60631c66d70ad561c0f9eca (diff)
reorganize osx app, so it can be put in PATH
Move all the binaries and libraries under a bundle/ subdirectory; so when it's in PATH only git-annex, runshell, and git-annex-webapp will be available.
Diffstat (limited to 'standalone/osx/git-annex.app/Contents/MacOS/runshell')
-rwxr-xr-xstandalone/osx/git-annex.app/Contents/MacOS/runshell14
1 files changed, 8 insertions, 6 deletions
diff --git a/standalone/osx/git-annex.app/Contents/MacOS/runshell b/standalone/osx/git-annex.app/Contents/MacOS/runshell
index 211f174fc..6bf926bbe 100755
--- a/standalone/osx/git-annex.app/Contents/MacOS/runshell
+++ b/standalone/osx/git-annex.app/Contents/MacOS/runshell
@@ -11,12 +11,14 @@ if [ ! -d "$base" ]; then
exit 1
fi
-if [ ! -e "$base/git-annex" ]; then
- echo "** base directory $base does not contain git-annex" >&2
+bundle="$base/bundle"
+
+if [ ! -e "$bundle/git-annex" ]; then
+ echo "** bundle directory $bundle does not contain git-annex" >&2
exit 1
fi
if [ ! -e "$base/git" ]; then
- echo "** base directory $base does not contain git" >&2
+ echo "** bundle directory $bundle does not contain git" >&2
exit 1
fi
@@ -43,17 +45,17 @@ fi
# system binaries.
ORIG_PATH="$PATH"
export ORIG_PATH
-PATH=$base:$PATH
+PATH=$bundle:$PATH
export PATH
ORIG_GIT_EXEC_PATH="$GIT_EXEC_PATH"
export ORIG_GIT_EXEC_PATH
-GIT_EXEC_PATH=$base
+GIT_EXEC_PATH=$bundle
export GIT_EXEC_PATH
ORIG_GIT_TEMPLATE_DIR="$GIT_TEMPLATE_DIR"
export ORIG_GIT_TEMPLATE_DIR
-GIT_TEMPLATE_DIR="$base/templates"
+GIT_TEMPLATE_DIR="$bundle/templates"
export GIT_TEMPLATE_DIR
# Indicate which variables were exported above.