[m-dev.] diff: use .nocopyright files to control copyright checks.

Peter Schachte schachte at cs.mu.OZ.AU
Thu Aug 17 15:49:14 AEST 2000


On Thu, Aug 17, 2000 at 03:31:26PM +1000, Zoltan Somogyi wrote:
> > +				if ($_ =~ /^$file/) {
> > +					print "no copyright check required for `$file' (from `$directory')\n";
> > +					return 0;
> > +				}
> 
> You should anchor the pattern match not only on the left (start of line),
> but also on the right (end of line).

Good point.  But it would be sporting to allow whitespace at least at the
end of the line, since it can't be readily seen in a text editor, and so
could easily lead to hair loss.  Better still, allow multiple file names on
a line, like the .cvsignore file, using the pattern

	/\b$file\b$/

Handling wildcards would take a bit more work.

-- 
Peter Schachte <schachte at cs.mu.OZ.AU>  Predestination was doomed from the
http://www.cs.mu.oz.au/~schachte/      start. 
Phone:  +61 3 8344 9166                
Fax:    +61 3 9348 1184                
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list