Home | History | Annotate | Line # | Download | only in jemalloc
      1  1.1  christos #!/bin/sh
      2  1.1  christos 
      3  1.1  christos objroot=$1
      4  1.1  christos 
      5  1.1  christos cat <<EOF
      6  1.1  christos #ifndef JEMALLOC_H_
      7  1.1  christos #define JEMALLOC_H_
      8  1.1  christos #ifdef __cplusplus
      9  1.1  christos extern "C" {
     10  1.1  christos #endif
     11  1.1  christos 
     12  1.1  christos EOF
     13  1.1  christos 
     14  1.1  christos for hdr in jemalloc_defs.h jemalloc_rename.h jemalloc_macros.h \
     15  1.1  christos            jemalloc_protos.h jemalloc_typedefs.h jemalloc_mangle.h ; do
     16  1.1  christos   cat "${objroot}include/jemalloc/${hdr}" \
     17  1.1  christos       | grep -v 'Generated from .* by configure\.' \
     18  1.1  christos       | sed -e 's/ $//g'
     19  1.1  christos   echo
     20  1.1  christos done
     21  1.1  christos 
     22  1.1  christos cat <<EOF
     23  1.1  christos #ifdef __cplusplus
     24  1.1  christos }
     25  1.1  christos #endif
     26  1.1  christos #endif /* JEMALLOC_H_ */
     27  1.1  christos EOF
     28