X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCron.pm;h=785a1ad93774260a048098ce002d8c687c77219d;hb=2b58ccdf81685a1167a43c38705a0d84b9d8d661;hp=870c395e217ea156269ef668bc33c3c3a4c71e53;hpb=06cf973726ecfc228d68bc82b63feb026d897a68;p=spider.git diff --git a/perl/DXCron.pm b/perl/DXCron.pm index 870c395e..785a1ad9 100644 --- a/perl/DXCron.pm +++ b/perl/DXCron.pm @@ -26,6 +26,12 @@ $lastmin = 0; my $fn = "$main::cmd/crontab"; my $localfn = "$main::localcmd/crontab"; +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; + # cron initialisation / reading in cronjobs sub init {