[vlc-devel] Problem with git on Mac OS X

Jérôme Decoodt djc at videolan.org
Wed Apr 16 09:53:43 CEST 2008


> `git help` returns the git usage dialogue (very lengthy; I won't  
> repeat it here).
> `which git` returns /usr/bin/git (I have git* soft-linked to /usr/bin).
> > if git help >/dev/null 2>&1; then
> >     echo "GIT = `which git`" >> config.mak
> > else
> >     echo "You do not have a Git client in your PATH." >&2
> > fi

It seems git doesn't return 0 on old versions when git help or git
version. There is (IIRC) the same problem on Ubuntu. Perhaps we could
test it's presence with

if which git >/dev/null 2>&1 ; then...

Best regards,
Jérôme Decoodt

More information about the vlc-devel mailing list