aboutsummaryrefslogtreecommitdiff
path: root/git_remote_helpers/Makefile
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@monkeypox.org>2010-03-21 12:01:50 -0700
committerJunio C Hamano <gitster@pobox.com>2010-03-24 14:33:54 -0700
commit44211e8c2ea48e1149cb36a02bd54f2d21c207f4 (patch)
treec4eed118bd20c83b4a31a677a262ff5d43209e05 /git_remote_helpers/Makefile
parent0b3dcfe721dc8734e2688f936afad055d8541d97 (diff)
downloadgit-44211e8c2ea48e1149cb36a02bd54f2d21c207f4.tar.gz
git-44211e8c2ea48e1149cb36a02bd54f2d21c207f4.tar.xz
Correct references to /usr/bin/python which does not exist on FreeBSD
On FreeBSD, Python does not ship as part of the base system but is available via the ports system, which install the binary in /usr/local/bin. Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git_remote_helpers/Makefile')
-rw-r--r--git_remote_helpers/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/git_remote_helpers/Makefile b/git_remote_helpers/Makefile
index c62dfd0f4..74b05dc91 100644
--- a/git_remote_helpers/Makefile
+++ b/git_remote_helpers/Makefile
@@ -7,7 +7,11 @@ pysetupfile:=setup.py
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
ifndef PYTHON_PATH
- PYTHON_PATH = /usr/bin/python
+ ifeq ($(uname_S),FreeBSD)
+ PYTHON_PATH = /usr/local/bin/python
+ else
+ PYTHON_PATH = /usr/bin/python
+ endif
endif
ifndef prefix
prefix = $(HOME)