Revision fc586d295589bd6fb9e2f6db1915519bb956c0b2 authored by Richard Levitte on 06 August 2014, 01:54:57 UTC, committed by Richard Levitte on 15 October 2014, 08:48:32 UTC
Reviewed-by: Tim Hudson <tjh@openssl.org>
1 parent 17d45de
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 ...