X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2Fcluster.pl;fp=perl%2Fcluster.pl;h=8aade278e42ebe2bb38d1297b21cf6e85491a260;hp=e8e7cb0568b0f51fef1d93ff7a2aa50b55278452;hb=88ef11b32fa79e140e65b0a52e5a263e70f3ba11;hpb=f6fdd9847c1f46b233be56296cad39ad949d25ae diff --git a/perl/cluster.pl b/perl/cluster.pl index e8e7cb05..8aade278 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -130,6 +130,15 @@ $bumpexisting = 1; # 1 = allow new connection to disconnect old, 0 - don't al $allowdxby = 0; # 1 = allow "dx by ", 0 - don't allow it +use vars qw($VERSION $BRANCH $build $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; +$main::build -= 3; # fudge (put back for now) + + + # send a message to call on conn and disconnect sub already_conn {