Source

ocaml / tools / cleanup-header

Full commit
#!/bin/sed -f

#######################################################################
#                                                                     #
#                                OCaml                                #
#                                                                     #
#            Xavier Leroy, projet Cristal, INRIA Rocquencourt         #
#                                                                     #
#  Copyright 2002 Institut National de Recherche en Informatique et   #
#  en Automatique.  All rights reserved.  This file is distributed    #
#  under the terms of the Q Public License version 1.0.               #
#                                                                     #
#######################################################################

# 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