X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fversion.pl;h=f8066d8b9a7f9cfb0c998350e0be257318e0a68c;hb=b26c5204bc58c12fc4d61725ba4f1cfc1a38be45;hp=c4593b934002e9257cd057d695627d036a40fd4f;hpb=f884903785eaf4ec9bfea168170c1bb127becf5c;p=spider.git diff --git a/cmd/show/version.pl b/cmd/show/version.pl index c4593b93..f8066d8b 100644 --- a/cmd/show/version.pl +++ b/cmd/show/version.pl @@ -7,25 +7,9 @@ # 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 $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::build) on \u$^O"; +push @out, "Copyright (c) 1998-$year Dirk Koopman G1TLH"; return (1, @out);