X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fversion.pl;h=7107570d969c0e5108b57bb48508b89c81285351;hb=537a4a109f291c206d754ec2067d49f9964cca08;hp=da72e305938cb3b263623be2578791738629ab12;hpb=56abde4de8d3ecc67864cdfd34a7c5d184ee8930;p=spider.git diff --git a/cmd/show/version.pl b/cmd/show/version.pl index da72e305..7107570d 100644 --- a/cmd/show/version.pl +++ b/cmd/show/version.pl @@ -3,29 +3,13 @@ # # Copyright (c) 1998 Dirk Koopman G1TLH # -# $Id$ +# # my @out; -my $build = $main::version; - -if (opendir(DIR, "$main::root/perl")) { - my @d = readdir(DIR); - closedir(DIR); - foreach my $fn (@d) { - if ($fn =~ /^cluster\.pl$/ || $fn =~ /\.pm$/) { - my $f = new IO::File "$main::root/perl/$fn" or next; - while (<$f>) { - if (/^#\s+\$Id:\s+[\w\._]+,v\s+(\d+\.\d+)/ ) { - $build += $1; - last; - } - } - $f->close; - } - } -} -push @out, "DX Spider Cluster version $main::version (build $build) on \u$^O"; -push @out, "Copyright (c) 1998-2001 Dirk Koopman G1TLH"; +my ($year) = (gmtime($main::systime))[5]; +$year += 1900; +push @out, "DX Spider Cluster version $main::version (build $main::subversion.$main::build git: $main::gitversion) on \u$^O"; +push @out, "Copyright (c) 1998-$year Dirk Koopman G1TLH"; return (1, @out);