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 if (/#include "(unistd.h|sys\/time.h)"/) {
18 print "#ifndef WIN32\n$_#endif\n";
21 next if /#include "log.h"/;
24 ' <$LE/evdns.c >evdns.c
31 cp $LE/event_tagging.c .
32 cp $LE/http-internal.h .
33 cp $LE/strlcpy-internal.h .
37 rsync -a $LE/WIN32* $LE/sample $LE/test $LE/compat . --del
38 rename 's/libevent/libev/' WIN32-Prj/lib*
42 cp $LE/event_rpcgen.py .
45 perl -i -pe 's/libevent/libev/g' sample/Makefile.am
46 perl -i -pe 's/libevent/libev/g' test/Makefile.am
48 perl -i -pe 's/#include <event.h>$/#include "event.h"/' test/*.c
51 next if /"event-internal.h"/;
52 s/base\d?->sig.ev_signal_added/0/;
53 s/base\d?->sig.ev_signal_pair\[0\]/-1/;
54 next if /test_signal_(dealloc|pipeloss|switchbase)\(\)/;
55 next if /test_priorities\(\d\)/;
69 s/\bevent-internal.h\b//g;
72 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 ev_win32.c /;
73 s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /;
74 s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /;
75 s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /;
78 ' <$LE/Makefile.am >Makefile.am
82 s/AC_LIBOBJ\(select\)/: ;/g;
83 s/AC_LIBOBJ\(poll\)/: ;/g;
84 s/AC_LIBOBJ\(kqueue\)/: ;/g;
85 s/AC_LIBOBJ\(epoll\)/: ;/g;
86 s/AC_LIBOBJ\(devpoll\)/: ;/g;
87 s/AC_LIBOBJ\(evport\)/: ;/g;
88 s/AC_LIBOBJ\(signal\)/: ;/g;
89 s/AC_LIBOBJ\(rtsig\)/: ;/g;
91 ' <$LE/configure.in >configure.in
94 automake-1.7 --add-missing
97 CC="ccache gcc" ./configure --prefix=/opt/libev --disable-shared "$@"