remove warnings from $BRANCH lines for 5.8.0
[spider.git] / perl / Bands.pm
index d40d4c823d1dfe032579a39b7009dbb4dc86b2f8..069c8ccd1503e9dc0104c9a860060664d6f7b7c5 100644 (file)
@@ -35,6 +35,12 @@ $bandsfn = "$main::data/bands.pl";
                  band => '0,BAND,parraypairs',
                 );
 
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/  || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
 # load the band data
 sub load
 {