[Bioperl-l] $VERSION into each file?
Raphael Leplae
lp1@sanger.ac.uk
Fri, 02 Mar 2001 11:39:53 +0000
Heikki Lehvaslaiho wrote:
>
> I remember that Jason wanted $Id$ line into every module for easy version
> tracking. Should that now before the release be used to put a
>
> $VERSION = 0.7
$VERSION in each module is indispensable, from my experience, and you
might want to consider:
use vars qw($VERSION);
$VERSION = do { my @r = (q$Revision: 1.1.1 $ =~ /\d+/g); sprintf
"%d."."%02d" x $#r, @r };
=> related to CVS and will be automatically updated with each commit.
and maybe:
$RELEASE = '0.7';
if you want to associate each module to the bioperl release nb.
Raphael