summaryrefslogtreecommitdiff
path: root/standalone/osx/git-annex.app/Contents
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/osx/git-annex.app/Contents')
-rw-r--r--standalone/osx/git-annex.app/Contents/MacOS/README9
-rwxr-xr-xstandalone/osx/git-annex.app/Contents/MacOS/runshell14
2 files changed, 17 insertions, 6 deletions
diff --git a/standalone/osx/git-annex.app/Contents/MacOS/README b/standalone/osx/git-annex.app/Contents/MacOS/README
new file mode 100644
index 000000000..c4bcea383
--- /dev/null
+++ b/standalone/osx/git-annex.app/Contents/MacOS/README
@@ -0,0 +1,9 @@
+This is a app bundle for git-annex. Most users are going to want to
+just click on the icon to start up the git-annex webapp.
+
+To use git-annex at the command line, you can put the directory containing
+this README into your PATH.
+
+Or, you can use the runshell script in this directory to start a shell
+that is configured to use git-annex and the other utilities included in
+this bundle, including git, gpg, rsync, ssh, etc.
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.