develooper Front page | perl.perl5.porters | Postings from July 2001

Re: Adding a 'make diff' command to MakeMaker

Thread Previous | Thread Next
From:
Rich Lafferty
Date:
July 18, 2001 18:22
Subject:
Re: Adding a 'make diff' command to MakeMaker
Message ID:
20010718212256.A17024@lafferty.ca
On Wed, Jul 18, 2001 at 05:52:53PM -0500, Ken Williams (ken@forum.swarthmore.edu) wrote:
> 
> The idea I had was to just use 'diff' without a full pathname (i.e. let
> the shell search $PATH), and to let the user add switches by doing 
> 'make diff -u' or whatever.  If I can't get the switches to work that
> way (not sure whether 'make' allows it), I'll either skip switches or use
> an environment variable.

There's a pure-Perl diff by Mark-Jason Dominus at 
<http://language.perl.com/ppt/src/diff/>; it might be useful to use
(part of?) that as either a default or fallback to get Usual Behavior
on platforms that don't have diff(1) lying around.

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Montreal, Quebec, Canada   |  "Do not dangle the mouse by the cord or
 http://www.lafferty.ca/    |   throw it at coworkers."  -- SGI Indy manual
rich@lafferty.ca -----------+-----------------------------------------------

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About