8 s/\s+char buf\[64\];/\tchar buf[96];/;
9 if (/#include "event.h"/) {
10 print "#ifndef EV_STANDALONE\n$_#endif\n";
13 if (/#include "misc.h"/) {
14 print "#ifndef EV_STANDALONE\n$_#endif\n";
17 next if /#include "log.h"/;
20 ' <$LE/evdns.c >evdns.c
27 cp $LE/event_tagging.c .
28 cp $LE/http-internal.h .
29 cp $LE/strlcpy-internal.h .
33 rsync -a $LE/WIN32* $LE/sample $LE/test $LE/compat . --del
34 rename 's/libevent/libev/' WIN32-Prj/lib*
38 cp $LE/event_rpcgen.py .
41 perl -i -pe 's/libevent/libev/g' sample/Makefile.am
42 perl -i -pe 's/libevent/libev/g' test/Makefile.am
44 perl -i -pe 's/#include <event.h>$/#include "event.h"/' test/*.c
47 next if /"event-internal.h"/;
48 s/base\d?->sig.ev_signal_added/0/;
49 s/base\d?->sig.ev_signal_pair\[0\]/-1/;
50 next if /test_signal_(dealloc|pipeloss|switchbase)\(\)/;
51 next if /test_priorities\(\d\)/;
65 s/\bevent-internal.h\b//g;
67 s/^(EXTRA_DIST\s*=\s*)/$1 ev.h ev_vars.h ev_wrap.h event_compat.h ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c /;
68 s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /;
69 s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /;
70 s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /;
73 ' <$LE/Makefile.am >Makefile.am
77 s/AC_LIBOBJ\(select\)/: ;/g;
78 s/AC_LIBOBJ\(poll\)/: ;/g;
79 s/AC_LIBOBJ\(kqueue\)/: ;/g;
80 s/AC_LIBOBJ\(epoll\)/: ;/g;
81 s/AC_LIBOBJ\(devpoll\)/: ;/g;
82 s/AC_LIBOBJ\(evport\)/: ;/g;
83 s/AC_LIBOBJ\(signal\)/: ;/g;
84 s/AC_LIBOBJ\(rtsig\)/: ;/g;
86 ' <$LE/configure.in >configure.in
89 automake-1.7 --add-missing
92 CC="ccache gcc" ./configure --prefix=/opt/libev --disable-shared "$@"