Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Correct references to /usr/bin/python which does not exist on FreeBSD
author
R. Tyler Ballance
<tyler@monkeypox.org>
Sun, 21 Mar 2010 19:01:50 +0000
(12:01 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Mar 2010 21:33:54 +0000
(14:33 -0700)
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>
Makefile
patch
|
blob
|
history
contrib/fast-import/import-zips.py
patch
|
blob
|
history
contrib/hg-to-git/hg-to-git.py
patch
|
blob
|
history
contrib/p4import/git-p4import.py
patch
|
blob
|
history
git_remote_helpers/Makefile
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0b3dcfe
)
diff --git
a/Makefile
b/Makefile
index 98372ebbfcabc0b96d33bdcde045ff73de971e28..5bb07699191c29516e247f13161479cefd1807b5 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-831,6
+831,7
@@
ifeq ($(uname_S),FreeBSD)
NO_UINTMAX_T = YesPlease
NO_STRTOUMAX = YesPlease
endif
NO_UINTMAX_T = YesPlease
NO_STRTOUMAX = YesPlease
endif
+ PYTHON_PATH = /usr/local/bin/python
endif
ifeq ($(uname_S),OpenBSD)
NO_STRCASESTR = YesPlease
endif
ifeq ($(uname_S),OpenBSD)
NO_STRCASESTR = YesPlease
diff --git
a/contrib/fast-import/import-zips.py
b/contrib/fast-import/import-zips.py
index 7051a83a59758277dd60fe026dea730eb7b6b115..82f5ed3ddc8adb1b9b281c3912f4e67c53ef152f 100755
(executable)
--- a/
contrib/fast-import/import-zips.py
+++ b/
contrib/fast-import/import-zips.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python
+#!/usr/bin/
env
python
## zip archive frontend for git-fast-import
##
## zip archive frontend for git-fast-import
##
diff --git
a/contrib/hg-to-git/hg-to-git.py
b/contrib/hg-to-git/hg-to-git.py
index 854cd94ba55e498a3ff6c26be3dbe5191faa19dc..046cb2b268a82358630e86bb55cf8b4e58c730fb 100755
(executable)
--- a/
contrib/hg-to-git/hg-to-git.py
+++ b/
contrib/hg-to-git/hg-to-git.py
@@
-1,4
+1,4
@@
-#!
/usr/bin/
python
+#!
/usr/bin/env
python
""" hg-to-git.py - A Mercurial to GIT converter
""" hg-to-git.py - A Mercurial to GIT converter
diff --git
a/contrib/p4import/git-p4import.py
b/contrib/p4import/git-p4import.py
index 0f3d97b67eef3108728265e26f5d79c4526d11ac..b6e534b65b687d955a878d902b9bb46cfa2e42ce 100644
(file)
--- a/
contrib/p4import/git-p4import.py
+++ b/
contrib/p4import/git-p4import.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python
+#!/usr/bin/
env
python
#
# This tool is copyright (c) 2006, Sean Estabrooks.
# It is released under the Gnu Public License, version 2.
#
# This tool is copyright (c) 2006, Sean Estabrooks.
# It is released under the Gnu Public License, version 2.
diff --git
a/git_remote_helpers/Makefile
b/git_remote_helpers/Makefile
index c62dfd0f4ddafbc82be15519f17815bbfcd62e8b..74b05dc91e42414147d5f3dc7b4fc66fb86c0eca 100644
(file)
--- a/
git_remote_helpers/Makefile
+++ b/
git_remote_helpers/Makefile
@@
-7,7
+7,11
@@
pysetupfile:=setup.py
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
ifndef PYTHON_PATH
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)
endif
ifndef prefix
prefix = $(HOME)