avoid installing git-annex from PATH to the webapp

This commit is contained in:
Joey Hess 2012-09-27 11:44:40 -04:00
parent 4d4c5a60ee
commit df1790b595

View file

@ -144,12 +144,14 @@ osxapp: $(bins)
cp -R ui-macos/git-annex.app "$(OSXAPP_DEST)"
install -d "$(OSXAPP_BASE)/bin"
for bin in git-annex $(THIRDPARTY_BINS); do \
cp git-annex "$(OSXAPP_BASE)/bin/"
strip "$(OSXAPP_BASE)/bin/git-annex"
ln -sf git-annex "$(OSXAPP_BASE)/bin/git-annex-shell"
for bin in $(THIRDPARTY_BINS); do \
cp "$$(which "$$bin")" "$(OSXAPP_BASE)/bin/" || echo "$$bin not available; skipping"; \
done
strip $(OSXAPP_BASE)/bin/git-annex
ln -sf git-annex "$(OSXAPP_BASE)/bin/git-annex-shell"
install -d "$(OSXAPP_BASE)/git-core"
(cd "$(shell git --exec-path)" && tar c .) | (cd "$(OSXAPP_BASE)"/git-core && tar x)