1 | #!/bin/sh |
1 | #!/bin/sh |
2 | |
2 | |
3 | LE=../libevent-1.3e |
3 | LE=../libevent-1.4.0-beta |
4 | |
4 | |
5 | cp $LE/evdns.h . |
5 | cp $LE/evdns.h . |
6 | |
6 | |
7 | perl -ne ' |
7 | perl -ne ' |
8 | s/\s+char buf\[64\];/\tchar buf[96];/; |
8 | s/\s+char buf\[64\];/\tchar buf[96];/; |
… | |
… | |
21 | next if /#include "log.h"/; |
21 | next if /#include "log.h"/; |
22 | |
22 | |
23 | print; |
23 | print; |
24 | ' <$LE/evdns.c >evdns.c |
24 | ' <$LE/evdns.c >evdns.c |
25 | |
25 | |
|
|
26 | cp $LE/autogen.sh . |
26 | cp $LE/epoll_sub.c . |
27 | cp $LE/epoll_sub.c . |
27 | cp $LE/evbuffer.c . |
28 | cp $LE/evbuffer.c . |
28 | cp $LE/buffer.c . |
29 | cp $LE/buffer.c . |
29 | cp $LE/evhttp.h . |
30 | cp $LE/evhttp.h . |
|
|
31 | cp $LE/evutil.h . |
|
|
32 | cp $LE/evutil.c . |
|
|
33 | cp $LE/event-config.h . |
|
|
34 | cp $LE/event-internal.h . |
|
|
35 | cp $LE/evrpc.h . |
|
|
36 | cp $LE/evrpc.c . |
|
|
37 | cp $LE/evrpc-internal.h . |
30 | cp $LE/http.c . |
38 | cp $LE/http.c . |
31 | cp $LE/event_tagging.c . |
39 | cp $LE/event_tagging.c . |
32 | cp $LE/http-internal.h . |
40 | cp $LE/http-internal.h . |
33 | cp $LE/strlcpy-internal.h . |
41 | cp $LE/strlcpy-internal.h . |
34 | cp $LE/log.c . |
42 | cp $LE/log.c . |
35 | cp $LE/log.h . |
43 | cp $LE/log.h . |
36 | cp $LE/strlcpy.c . |
44 | cp $LE/strlcpy.c . |
37 | rsync -a $LE/WIN32* $LE/sample $LE/test $LE/compat . --del |
45 | rsync -a $LE/WIN32* $LE/sample $LE/test $LE/compat . --del |
38 | rename 's/libevent/libev/' WIN32-Prj/lib* |
46 | rename 's/libevent/libev/' WIN32-Prj/lib* |
39 | cp $LE/aclocal.m4 . |
47 | cp $LE/aclocal.m4 . |
40 | cp $LE/acconfig.h . |
48 | #cp $LE/acconfig.h . |
41 | cp $LE/config.h.in . |
49 | cp $LE/config.h.in . |
42 | cp $LE/event_rpcgen.py . |
50 | cp $LE/event_rpcgen.py . |
43 | cp $LE/*.3 . |
51 | cp $LE/*.3 . |
44 | |
52 | |
45 | perl -i -pe 's/libevent/libev/g' sample/Makefile.am |
53 | perl -i -pe 's/libevent/libev/g' sample/Makefile.am |
… | |
… | |
49 | |
57 | |
50 | perl -i -ne ' |
58 | perl -i -ne ' |
51 | next if /"event-internal.h"/; |
59 | next if /"event-internal.h"/; |
52 | s/base\d?->sig.ev_signal_added/0/; |
60 | s/base\d?->sig.ev_signal_added/0/; |
53 | s/base\d?->sig.ev_signal_pair\[0\]/-1/; |
61 | s/base\d?->sig.ev_signal_pair\[0\]/-1/; |
|
|
62 | s/base->sig.evsignal_caught/0/; |
54 | next if /test_signal_(dealloc|pipeloss|switchbase)\(\)/; |
63 | next if /^\ttest_signal_(dealloc|pipeloss|switchbase|assert|restore)\(\)/; |
|
|
64 | next if /^\ttest_simplesignal\(\)/; # non-default-loop |
|
|
65 | next if /^\ttest_immediatesignal\(\)/; # non-default-loop |
55 | next if /test_priorities\(\d\)/; |
66 | next if /test_priorities\(\d\)/; |
56 | print; |
67 | print; |
57 | ' test/regress.c |
68 | ' test/regress.c |
58 | |
69 | |
59 | perl -ne ' |
70 | perl -ne ' |
|
|
71 | s/\bmin_heap.h\b//g; |
60 | s/\bsignal.c\b//g; |
72 | s/\bsignal.c\b//g; |
61 | s/\bevport.c\b//g; |
73 | s/\bevport.c\b//g; |
62 | s/\bkqueue.c\b//g; |
74 | s/\bkqueue.c\b//g; |
63 | s/\bdevpoll.c\b//g; |
75 | s/\bdevpoll.c\b//g; |
64 | s/\brtsig.c\b//g; |
76 | s/\brtsig.c\b//g; |
… | |
… | |
67 | s/\bepoll.c\b//g; |
79 | s/\bepoll.c\b//g; |
68 | s/\bepoll_sub.c\b//g; |
80 | s/\bepoll_sub.c\b//g; |
69 | s/\bevent-internal.h\b//g; |
81 | s/\bevent-internal.h\b//g; |
70 | s/\bevsignal.h\b//g; |
82 | s/\bevsignal.h\b//g; |
71 | s/-Wall//; |
83 | s/-Wall//; |
72 | s/^(man_MANS\s*=\s*)/$1 ev.3 /; |
84 | s/^(man_MANS\s*=)/$1 ev.3 /; |
73 | 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 ev.3 ev.pod ev.html /; |
85 | s/^(EXTRA_DIST\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 ev.3 ev.pod ev.html /; |
74 | s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /; |
86 | s/^(include_HEADERS\s*=)/$1 ev.h event_compat.h /; |
75 | s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /; |
87 | s/^(CORE_SRC\s*=)/$1 ev.c /; |
76 | s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /; |
88 | s/^(SYS_LIBS\s*=)/$1 -lm /; |
77 | s/libevent/libev/g; |
89 | s/libevent/libev/g; |
78 | print; |
90 | print; |
79 | ' <$LE/Makefile.am >Makefile.am |
91 | ' <$LE/Makefile.am >Makefile.am |
80 | |
92 | |
81 | perl -ne ' |
93 | perl -ne ' |