h2p 385 B

12345678910111213141516
  1. #!/bin/sh
  2. f=`basename $1 .h`
  3. sed -f h2p1.sed <$1 >$1.new
  4. mv $1.new $1
  5. h2pas -e -S -c -D -l libc -i -p -o $f.out $*
  6. sed -f h2p2.sed <${f}.out >${f}h.inc
  7. cat <<EOF >>${f}h.inc
  8. { ---------------------------------------------------------------------
  9. Borland compatibility types
  10. ---------------------------------------------------------------------}
  11. // Type
  12. EOF
  13. #
  14. # end of script