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