Re: [RFC/PATCH] Use compatibility regex library for OSX/Darwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Boyd Lynn Gerber wrote:
> On Tue, 16 Sep 2008, Brandon Casey wrote:
>> Boyd Lynn Gerber wrote:
>>> If I use gdiff or make gnu diff and put it in /usr/local/bin/ and change
>>> the path to have /usr/local/bin first it does not fail/.
>>>
>>> I have a /usr/gnu/bin/... where I have gdiff linked to diff.
>>
>> You must have done something like this in the past when you were
>> testing previous versions since the test_cmp variable has not changed.
>>
>> So, for future reference either have a diff that understands '-u' in
>> your path, or set the test_cmp environment variable.
> 
> I had customized things so that any GNU util used gutil_name.  This is
> the easiest way for me to distinguish between Native utils and GNU utils.
> 
> Is there an easy way to have git use gcommand_name instead of
> command_name?

Not that I know of.

>  I changed the path to run the git test, but not all my
> clients will allow be to have the gnu named command instead of the
> native command.  There programs require the non GNU functionality.  That
> is why I create a /usr/gnu/  with all the GNU stuff available for my
> use, but having to change paths back and forth just to run git is a pain
> when build/trouble shooting customer  aplications.

I usually create a little compile script which sets the environment
variables the way I want, and calls make or gmake appropriately.

For the test suite you can set (if necessary):
  test_cmp
  TAR

'git grep' sometimes calls native grep. You can disallow this by setting
the Makefile variable NO_EXTERNAL_GREP.

And of course SHELL_PATH can be used to set the path to the shell that
all shell code should be executed with.

-brandon
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux