diff options
author | Ulf Möller <ulf@openssl.org> | 2000-02-21 00:55:45 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-02-21 00:55:45 +0000 |
commit | 10a926c1eb78ad448ac82320c6131227f14b5d24 (patch) | |
tree | baade77fbf21a74bb18916fae3d595721ec5c1e5 /Configure | |
parent | d3442bc780473f0cd4f378bc31130d4579da640b (diff) | |
download | openssl-10a926c1eb78ad448ac82320c6131227f14b5d24.tar.gz |
More compact Configure usage message.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 31 |
1 files changed, 25 insertions, 6 deletions
@@ -507,6 +507,14 @@ if ($target eq "TABLE") { exit 0; } +if ($target eq "LIST") { + foreach (sort keys %table) { + print; + print "\n"; + } + exit 0; +} + &usage if (!defined($table{$target})); my $IsWindows=scalar grep /^$target$/,@WinTargets; @@ -871,22 +879,33 @@ exit(0); sub usage { print STDERR $usage; - print STDERR "pick os/compiler from:"; + print STDERR "\npick os/compiler from:\n"; my $j=0; my $i; + my $k=0; foreach $i (sort keys %table) { next if $i =~ /^debug/; - print STDERR "\n" if ($j++ % 4) == 0; - printf(STDERR "%-18s ",$i); + $k += length($i) + 1; + if ($k > 78) + { + print STDERR "\n"; + $k=length($i); + } + print STDERR $i . " "; } foreach $i (sort keys %table) { next if $i !~ /^debug/; - print STDERR "\n" if ($j++ % 4) == 0; - printf(STDERR "%-18s ",$i); + $k += length($i) + 1; + if ($k > 78) + { + print STDERR "\n"; + $k=length($i); + } + print STDERR $i . " "; } - print STDERR "\n"; + print STDERR "\n\nNOTE: If in doubt, on Unix-ish systems use './config'.\n"; exit(1); } |