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

Re: CVS breaks Makefile (pattern contains no "%" ??)



On Thu, Jul 12, 2001 at 11:26:25AM -0500, will trillich wrote:
[snip]
> Makefile.PL contains only
> 
> 	use ExtUtils::MakeMaker;
> 	# See lib/ExtUtils/MakeMaker.pm for details of how to influence
> 	# the contents of the Makefile that is written.
> 	WriteMakefile(
> 		'NAME' => 'MyModule',
> 		'VERSION_FROM' => 'MyModule.pm', # finds $VERSION
> 	);
> 
> so it gets the $VERSION variable from the module itself.
> in the MyModule.pm code i've got
> 
> 	use vars qw($VERSION);
> 	$VERSION = '$Id: MyModule.pm,v 1.1.1.1 2001/07/11 21:42:56 will Exp $';
> 
> should i use something different?

Use the -ko flag to "add" in CVS for the generated files to stop keyword
expansion.  If you want to use keyword expansion, then you have to be
careful in your usage (especially with perl or shell scripts).

-- 
Eric G. Miller <egm2@jps.net>



Reply to: