X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=597c5eff0ee2010764a9e533732c14b8cd23a38b;hb=4c4fbc7f0ec6c133f9fe88ecd41a22d7efad7706;hp=bc3ca0d67bcb41163bd539e953e5f469daef960b;hpb=e4af773643fca2794a381bf4b44075bcd193a437;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index bc3ca0d6..597c5eff 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -23,6 +23,14 @@ BEGIN { unshift @INC, "$root/perl"; # this IS the right way round! unshift @INC, "$root/local"; + + sub main::mkver + { + my $s = shift; + my ($v, $b) = $s =~ /(\d+\.\d+)(?:\.(\d+\.\d+))?/; + $main::build += sprintf "%.3f", $v; + $main::branch += sprintf("%.3f", $b) if $b; + } } use Msg;