projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d3442bc
)
More compact Configure usage message.
author
Ulf Möller
<ulf@openssl.org>
Mon, 21 Feb 2000 00:55:45 +0000
(
00:55
+0000)
committer
Ulf Möller
<ulf@openssl.org>
Mon, 21 Feb 2000 00:55:45 +0000
(
00:55
+0000)
Configure
patch
|
blob
|
history
config
patch
|
blob
|
history
diff --git
a/Configure
b/Configure
index 4289c9d950e4ea42e8c4b536ed6e70e2c73471e4..7ac8a6ef14f6f87b8bbba2c87cb9d08355246d68 100755
(executable)
--- a/
Configure
+++ b/
Configure
@@
-507,6
+507,14
@@
if ($target eq "TABLE") {
exit 0;
}
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;
&usage if (!defined($table{$target}));
my $IsWindows=scalar grep /^$target$/,@WinTargets;
@@
-871,22
+879,33
@@
exit(0);
sub usage
{
print STDERR $usage;
sub usage
{
print STDERR $usage;
- print STDERR "
pick os/compiler from:
";
+ print STDERR "
\npick os/compiler from:\n
";
my $j=0;
my $i;
my $j=0;
my $i;
+ my $k=0;
foreach $i (sort keys %table)
{
next if $i =~ /^debug/;
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/;
}
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);
}
exit(1);
}
diff --git
a/config
b/config
index 578d08b9de344150f352470e9b73c299e6d886ef..d9dbb76d9fa40ae3f4ec8b430ada25929badd693 100755
(executable)
--- a/
config
+++ b/
config
@@
-535,14
+535,14
@@
fi
# compiler for the platform ... in which case we add it on
# the end ... otherwise we leave it off
# compiler for the platform ... in which case we add it on
# the end ... otherwise we leave it off
-$PERL ./Configure
2>&1
| grep "$OUT-$CC" > /dev/null
+$PERL ./Configure
LIST
| grep "$OUT-$CC" > /dev/null
if [ $? = "0" ]; then
OUT="$OUT-$CC"
fi
OUT="$PREFIX$OUT"
if [ $? = "0" ]; then
OUT="$OUT-$CC"
fi
OUT="$PREFIX$OUT"
-$PERL ./Configure
2>&1
| grep "$OUT" > /dev/null
+$PERL ./Configure
LIST
| grep "$OUT" > /dev/null
if [ $? = "0" ]; then
echo Configuring for $OUT
if [ $? = "0" ]; then
echo Configuring for $OUT