From mboxrd@z Thu Jan 1 00:00:00 1970 From: "R. Tyler Ballance" Subject: [PATCH] Correct references to /usr/bin/python which may not exist on certain systems Date: Sat, 20 Mar 2010 16:51:11 -0700 Message-ID: <20100320235105.GA30457@kiwi.sharlinx.com> Reply-To: 20100320230230.GA29738@kiwi.sharlinx.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sun Mar 21 00:51:38 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nt8S9-0001VT-UH for gcvg-git-2@lo.gmane.org; Sun, 21 Mar 2010 00:51:38 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752770Ab0CTXvZ (ORCPT ); Sat, 20 Mar 2010 19:51:25 -0400 Received: from mail.geekisp.com ([216.168.135.169]:2068 "EHLO starfish.geekisp.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752759Ab0CTXvY (ORCPT ); Sat, 20 Mar 2010 19:51:24 -0400 Received: (qmail 28027 invoked by uid 1003); 20 Mar 2010 23:51:23 -0000 Received: from localhost (HELO kiwi.sharlinx.com) (tyler@monkeypox.org@127.0.0.1) by mail.geekisp.com with SMTP; 20 Mar 2010 23:51:22 -0000 Mail-Followup-To: git@vger.kernel.org Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable FreeBSD for example does not ship with a /usr/bin/python such that Python installed from ports will be located by default in /usr/local/bin --- Makefile | 2 +- contrib/fast-import/import-zips.py | 2 +- contrib/hg-to-git/hg-to-git.py | 2 +- contrib/p4import/git-p4import.py | 2 +- git_remote_helpers/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3a6c6ea..2b248b4 100644 --- a/Makefile +++ b/Makefile @@ -444,7 +444,7 @@ ifndef PERL_PATH PERL_PATH =3D /usr/bin/perl endif ifndef PYTHON_PATH - PYTHON_PATH =3D /usr/bin/python + PYTHON_PATH =3D /usr/bin/env python endif =20 export PERL_PATH diff --git a/contrib/fast-import/import-zips.py b/contrib/fast-import/impor= t-zips.py index 7051a83..82f5ed3 100755 --- 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 =20 ## 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 854cd94..046cb2b 100755 --- 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 =20 """ hg-to-git.py - A Mercurial to GIT converter =20 diff --git a/contrib/p4import/git-p4import.py b/contrib/p4import/git-p4impo= rt.py index 0f3d97b..b6e534b 100644 --- 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. diff --git a/git_remote_helpers/Makefile b/git_remote_helpers/Makefile index c62dfd0..af3cc28 100644 --- a/git_remote_helpers/Makefile +++ b/git_remote_helpers/Makefile @@ -7,7 +7,7 @@ pysetupfile:=3Dsetup.py DESTDIR_SQ =3D $(subst ','\'',$(DESTDIR)) =20 ifndef PYTHON_PATH - PYTHON_PATH =3D /usr/bin/python + PYTHON_PATH =3D /usr/bin/env python endif ifndef prefix prefix =3D $(HOME) --=20 1.6.4.3 --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAkulX2kACgkQFCbH3D9R4W+mFACghkkmDDvwYWOfS2lDOK88qVhV 9ioAnRjhJrnBdZel4kXOcmIjrhXrchmW =NupY -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--