[Chicago-talk] Perl and CVS
Jay Strauss
me at heyjay.com
Thu Nov 13 20:22:43 CST 2003
Okay dokey, I figure a 1000 commits isn't unrealistic (depending on how
often one commits)
----- Original Message -----
From: "Paul Baker" <pbaker at where2getit.com>
To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
Sent: Thursday, November 13, 2003 4:03 PM
Subject: Re: [Chicago-talk] Perl and CVS
> Jay Strauss wrote:
>
> > And then I'm using CVS, is there some way to make it when I check the
module
> > in, that CVS would replace the "0.01" with the CVS version?
>
> Use this:
>
> our $VERSION = do { my @r = (q$Revision: 1.2 $ =~ /\d+/g); sprintf "%d." .
"%02d" x $#r, @r };
>
> This would expand out the version number to 1.02 and it will be updated by
CVS commits. If you think you may have more than one hundred revisions (the
revision number could get up to 1.100, then change the "%02d" to "%03d".
>
> --
> Paul Baker
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
>
More information about the Chicago-talk
mailing list