<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/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=&lt;ERR&gt;;
close(ERR);

open(IN,$ARGV[1]) || die "unable to open header file '$ARGV[1]':$!\n";

@out="";
while (&lt;IN&gt;)
	{
	push(@out,$_);
	last if /BEGIN ERROR CODES/;
	}
close(IN);

open(OUT,"&gt;$ARGV[1]") || die "unable to open header file '$ARGV[1]':$1\n";
print OUT @out;
print OUT @err;
print OUT &lt;&lt;"EOF";
 
#ifdef  __cplusplus
}
#endif
#endif

EOF
close(OUT);


</pre></body></html>