projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo
[spider.git]
/
perl
/
console.pl
diff --git
a/perl/console.pl
b/perl/console.pl
index bc3ca0d67bcb41163bd539e953e5f469daef960b..597c5eff0ee2010764a9e533732c14b8cd23a38b 100755
(executable)
--- 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";
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;
}
use Msg;