From 73934800474e5b333af2bff0a8f79f13405fb500 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 24 Apr 1999 17:28:43 +0000 Subject: Change the command line options of mkerr.pl so -static is now default and a -write option is needed to actually change anything. Second attempt at getting rid of ERR, ERRC definitions: it might even work this time :-) --- util/mkerr.pl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'util/mkerr.pl') diff --git a/util/mkerr.pl b/util/mkerr.pl index 0293b0be7d..ccf766b9a0 100644 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -3,9 +3,10 @@ my $config = "crypto/err/openssl.ec"; my $debug = 0; my $rebuild = 0; -my $static = 0; +my $static = 1; my $recurse = 0; my $reindex = 0; +my $dowrite = 0; while (@ARGV) { @@ -25,8 +26,11 @@ while (@ARGV) { } elsif($arg eq "-reindex") { $reindex = 1; shift @ARGV; - } elsif($arg eq "-static") { - $static = 1; + } elsif($arg eq "-nostatic") { + $static = 0; + shift @ARGV; + } elsif($arg eq "-write") { + $dowrite = 1; shift @ARGV; } else { last; @@ -210,7 +214,7 @@ foreach $lib (keys %csrc) } else { print STDERR "$lib:\t\t$fnew{$lib} New Functions,"; print STDERR " $rnew{$lib} New Reasons.\n"; - + next unless $dowrite; } # If we get here then we have some new error codes so we -- cgit v1.2.3