[vlc-devel] commit: Check git location. (Jean-Baptiste Kempf )

Rafaël Carré funman at videolan.org
Wed Mar 12 10:16:50 CET 2008


On Wed, 2008-03-12 at 07:32 +0100, git version control wrote:
> vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Mar 11 23:27:49 2008 -0700| [f223fd68adaf438647303089ba55afbb454972db]
> 
> Check git location.
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f223fd68adaf438647303089ba55afbb454972db
> ---
> 
>  extras/contrib/bootstrap |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
> index e5c82dd..fbba865 100755
> --- a/extras/contrib/bootstrap
> +++ b/extras/contrib/bootstrap
> @@ -291,3 +291,17 @@ elif svn help >/dev/null 2>&1; then
>  else
>      echo "You do not have a subversion client installed." >&2
>  fi
> +
> +if test -f /sw/bin/git; then
> +    echo "GIT = /sw/bin/git" >> config.mak
> +elif test -f /usr/local/bin/git; then
> +    echo "GIT = /usr/local/bin/git" >> config.mak
> +elif test -f /usr/bin/git; then
> +    echo "GIT = /usr/bin/git" >> config.mak
> +elif test -f /opt/local/bin/git; then
> +    echo "GIT = /opt/local/bin/git" >> config.mak
> +elif git help >/dev/null 2>&1; then
> +    echo "GIT = `which git`" >> config.mak
> +else
> +    echo "You do not have a Git client installed." >&2
> +fi

Why not using only which git ?

-- 
Rafaël Carré <funman at videolan.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080312/84f3c4b2/attachment.sig>


More information about the vlc-devel mailing list