]> dxcluster.org Git - spider.git/commitdiff
and for a sample module
authorminima <minima>
Mon, 8 Jan 2007 10:34:16 +0000 (10:34 +0000)
committerminima <minima>
Mon, 8 Jan 2007 10:34:16 +0000 (10:34 +0000)
perl/DXProt.pm

index e33a310f2268f394e07271b1745f9f365381b094..84572b68246c8c00da16310df040c24d21ec9268 100644 (file)
@@ -38,11 +38,6 @@ use DXProtHandle;
 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,0));
-$main::build += $VERSION;
-$main::branch += $BRANCH;
-
 use vars qw($pc11_max_age $pc23_max_age $last_pc50 $eph_restime $eph_info_restime $eph_pc34_restime
                        $last_hour $last10 %eph  %pings %rcmds $ann_to_talk
                        $pingint $obscount %pc19list $chatdupeage $chatimportfn
@@ -52,6 +47,8 @@ use vars qw($pc11_max_age $pc23_max_age $last_pc50 $eph_restime $eph_info_restim
                        $eph_pc15_restime $pc92_update_period $last_pc92_update
                   );
 
+($VERSION, $BRANCH) = dxver(q$Revision$);
+
 $pc11_max_age = 1*3600;                        # the maximum age for an incoming 'real-time' pc11
 $pc23_max_age = 1*3600;                        # the maximum age for an incoming 'real-time' pc23