Now also parse new diffs
[handlerosm.git] / cherokee-includes.sh
blobea828e2c9ca97a44ceac159ddb49fab2d033f1ae
1 #!/bin/sh
3 if [ $# -eq 2 ]; then
4 cd $1
5 cp config.h constants.h $2/include/cherokee/.
6 cd cherokee
7 cat common-internal.h | sed "s/\(<con\(.*\)\.h>\)/\"con\2.h\"/g" > $2/include/cherokee/common-internal.h
8 cp bind.h threading.h cryptor.h socket.h iocache.h header-protected.h virtual_server.h virtual_server_names.h rule_list.h regex.h connection-protected.h $2/include/cherokee/.
10 mkdir -p $2/include/cherokee/pcre
11 cp pcre/*.h $2/include/cherokee/pcre/.
13 echo -e "#include <sys/uio.h>\n#include <stdint.h>\n" > $2/include/cherokee/util.h
14 cat util.h >> $2/include/cherokee/util.h
15 echo "#include <cherokee/connection-protected.h>" >> $2/include/cherokee/cherokee.h
17 else
18 echo $0 "<cherokee-sourcedir> <cherokee-install-prefix>"