1 | #!/bin/sh |
1 | #!/bin/sh |
|
|
2 | |
|
|
3 | LE=../libevent-1.4.0-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 |
… | |
… | |
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 | rm -f configure.ac |
15 | rm -f configure.ac |
14 | |
16 | |
15 | LE=../libevent-1.4.0-beta |
17 | cp $LE/evdns.h . |
16 | |
18 | |
17 | cp $LE/evdns.h . |
19 | perl -i -pe 's%^/.libevent-include./%#include "event_compat.h"%' event.h |
18 | |
20 | |
19 | perl -ne ' |
21 | perl -ne ' |
20 | s/\s+char buf\[64\];/\tchar buf[96];/; |
22 | s/\s+char buf\[64\];/\tchar buf[96];/; |
21 | if (/#include "event.h"/) { |
23 | if (/#include "event.h"/) { |
22 | print "#ifndef EV_STANDALONE\n$_#endif\n"; |
24 | print "#ifndef EV_STANDALONE\n$_#endif\n"; |