now output more information
[spider.git] / perl / console.pl
index bc3ca0d67bcb41163bd539e953e5f469daef960b..597c5eff0ee2010764a9e533732c14b8cd23a38b 100755 (executable)
@@ -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;