X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fversion.pl;h=5707504a190705138cbdfe91cd289e203cf7c172;hb=069852202dd430632012090cb749a0b1564655f4;hp=2bf3a7fe560d28c50aede799da0aa9240b0d95c1;hpb=2546ef0cfaaca39e65985e414258071a636979af;p=spider.git diff --git a/cmd/show/version.pl b/cmd/show/version.pl index 2bf3a7fe..5707504a 100644 --- a/cmd/show/version.pl +++ b/cmd/show/version.pl @@ -3,13 +3,29 @@ # # Copyright (c) 1998 Dirk Koopman G1TLH # -# $Id$ +# # +my ($self, $line) = @_; my @out; +my @in = map {uc} split /\s+/, $line; + +if ($self->priv > 5 && @in) { +# $DB::single=1; + + my $q = $in[0] eq 'ALL' ? '.*' : join('|', @in); + my @n = sort {$a->call cmp $b->call} grep {$_->call =~ /^(?:$q)/} Route::Node::get_all(); + push @out, " Node Version Build PC9X via PC92"; + foreach my $n (@n) { + push @out, sprintf " %-10s %5d %5s %3s %3s", $n->call, $n->version, $n->build, yesno($n->do_pc9x), yesno($n->via_pc92); + } + push @out, ' ' . scalar @n . " Nodes found"; +} else { + my ($year) = (gmtime($main::systime))[5]; + $year += 1900; + push @out, "DXSpider v$main::version (build $main::build git: $main::gitbranch/$main::gitversion) using perl $^V on \u$^O"; + push @out, "Copyright (c) 1998-$year Dirk Koopman G1TLH"; +} -push @out, "DX Spider Cluster version $main::version"; -push @out, "written in perl for unix"; -push @out, "Copyright (c) 1998 Dirk Koopman G1TLH"; return (1, @out);