change build number calculation to be more accurate
[spider.git] / perl / Minimuf.pm
index e5ab130f20f1f9e6664f867cacc0e9f32598d5e2..88d2be64c6c7ebdf65c771a5576545d8737b2e7c 100644 (file)
@@ -45,6 +45,13 @@ require Exporter;
             $noise);
 
 use strict;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
 use vars qw($pi $d2r $r2d $halfpi $pi2 $VOFL $R $hE $hF $GAMMA $LN10
                    $MINBETA $BOLTZ $NTEMP $DELTAF $MPATH $GLOSS $SLOSS
             $noise);