Revision 7794c355eadd49d2fc1670b1dc8ac19f1e93c26f authored by Dr. Stephen Henson on 28 September 2015, 13:31:53 UTC, committed by Dr. Stephen Henson on 28 September 2015, 13:34:47 UTC
Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 92ea6fe597238779e23fd9e1fee82d30641d61a8)
1 parent dfa08ea
err-ins.pl
#!/usr/local/bin/perl
#
# tack error codes onto the end of a file
#
open(ERR,$ARGV[0]) || die "unable to open error file '$ARGV[0]':$!\n";
@err=<ERR>;
close(ERR);
open(IN,$ARGV[1]) || die "unable to open header file '$ARGV[1]':$!\n";
@out="";
while (<IN>)
{
push(@out,$_);
last if /BEGIN ERROR CODES/;
}
close(IN);
open(OUT,">$ARGV[1]") || die "unable to open header file '$ARGV[1]':$1\n";
print OUT @out;
print OUT @err;
print OUT <<"EOF";
#ifdef __cplusplus
}
#endif
#endif
EOF
close(OUT);
Computing file changes ...