Revision a1a96e54a4177afb9e4d4cfa3fa91507a341d0bb authored by Ulf Möller on 19 March 2000, 22:58:12 UTC, committed by Ulf Möller on 19 March 2000, 22:58:12 UTC
movements, keyboard etc. and write it to a seed file.
1 parent a6aa71f
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 ...