ocaml/tools/cleanup-header

14 lines
298 B
Sed

#!/bin/sed -f
# Remove private parts from runtime include files, before installation
# in /usr/local/lib/ocaml/caml
/\/\* <include \.\.\/config\/m\.h> \*\// {
r ../config/m.h
d
}
/\/\* <include \.\.\/config\/s\.h> \*\// {
r ../config/s.h
d
}
/\/\* <private> \*\//,/\/\* <\/private> \*\//d