1 | #!/bin/sh |
1 | #!/bin/sh |
|
|
2 | |
|
|
3 | LE=../libevent-1.4.1-beta |
2 | |
4 | |
3 | if ! [ -e evbuffer.c ]; then |
5 | if ! [ -e evbuffer.c ]; then |
4 | echo do not run this programm unless you know what you are doing |
6 | echo do not run this programm unless you know what you are doing |
5 | exit 1 |
7 | exit 1 |
6 | fi |
8 | fi |
… | |
… | |
8 | # this program combines libev and libevent into a single package |
10 | # this program combines libev and libevent into a single package |
9 | |
11 | |
10 | cvs update -AdP libev |
12 | cvs update -AdP libev |
11 | rsync -avP libev/. . --exclude CVS |
13 | rsync -avP libev/. . --exclude CVS |
12 | |
14 | |
13 | LE=../libevent-1.4.0-beta |
15 | rm -f configure.ac |
14 | |
16 | |
15 | cp $LE/evdns.h . |
17 | cp $LE/evdns.h . |
|
|
18 | |
|
|
19 | perl -i -pe 's%^/.libevent-include./%#include "event_compat.h"%' event.h |
16 | |
20 | |
17 | perl -ne ' |
21 | perl -ne ' |
18 | s/\s+char buf\[64\];/\tchar buf[96];/; |
22 | s/\s+char buf\[64\];/\tchar buf[96];/; |
19 | if (/#include "event.h"/) { |
23 | if (/#include "event.h"/) { |
20 | print "#ifndef EV_STANDALONE\n$_#endif\n"; |
24 | print "#ifndef EV_STANDALONE\n$_#endif\n"; |
… | |
… | |
102 | perl -ne ' |
106 | perl -ne ' |
103 | #s/-Wall/-Wall -Wno-comment -Wunused-function -Wno-unused-value/; |
107 | #s/-Wall/-Wall -Wno-comment -Wunused-function -Wno-unused-value/; |
104 | s/-Wall//g; |
108 | s/-Wall//g; |
105 | #s/libevent/libev/g; |
109 | #s/libevent/libev/g; |
106 | #VERSION |
110 | #VERSION |
107 | s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,1.85)/; |
111 | s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,3.0)/; |
108 | s/AC_LIBOBJ\(select\)/: ;/g; |
112 | s/AC_LIBOBJ\(select\)/: ;/g; |
109 | s/AC_LIBOBJ\(poll\)/: ;/g; |
113 | s/AC_LIBOBJ\(poll\)/: ;/g; |
110 | s/AC_LIBOBJ\(kqueue\)/: ;/g; |
114 | s/AC_LIBOBJ\(kqueue\)/: ;/g; |
111 | s/AC_LIBOBJ\(epoll\)/: ;/g; |
115 | s/AC_LIBOBJ\(epoll\)/: ;/g; |
112 | s/AC_LIBOBJ\(devpoll\)/: ;/g; |
116 | s/AC_LIBOBJ\(devpoll\)/: ;/g; |