ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/import_libevent
(Generate patch)

Comparing libev/import_libevent (file contents):
Revision 1.24 by root, Sat Dec 22 16:37:08 2007 UTC vs.
Revision 1.27 by root, Mon Jan 28 12:23:02 2008 UTC

1#!/bin/sh 1#!/bin/sh
2
3LE=../libevent-1.4.1-beta
2 4
3if ! [ -e evbuffer.c ]; then 5if ! [ -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
6fi 8fi
10cvs update -AdP libev 12cvs update -AdP libev
11rsync -avP libev/. . --exclude CVS 13rsync -avP libev/. . --exclude CVS
12 14
13rm -f configure.ac 15rm -f configure.ac
14 16
15LE=../libevent-1.4.0-beta 17cp $LE/evdns.h .
16 18
17cp $LE/evdns.h . 19perl -i -pe 's%^/.libevent-include./%#include "event_compat.h"%' event.h
18 20
19perl -ne ' 21perl -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";
104perl -ne ' 106perl -ne '
105 #s/-Wall/-Wall -Wno-comment -Wunused-function -Wno-unused-value/; 107 #s/-Wall/-Wall -Wno-comment -Wunused-function -Wno-unused-value/;
106 s/-Wall//g; 108 s/-Wall//g;
107 #s/libevent/libev/g; 109 #s/libevent/libev/g;
108 #VERSION 110 #VERSION
109 s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,2.0)/; 111 s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,3.0)/;
110 s/AC_LIBOBJ\(select\)/: ;/g; 112 s/AC_LIBOBJ\(select\)/: ;/g;
111 s/AC_LIBOBJ\(poll\)/: ;/g; 113 s/AC_LIBOBJ\(poll\)/: ;/g;
112 s/AC_LIBOBJ\(kqueue\)/: ;/g; 114 s/AC_LIBOBJ\(kqueue\)/: ;/g;
113 s/AC_LIBOBJ\(epoll\)/: ;/g; 115 s/AC_LIBOBJ\(epoll\)/: ;/g;
114 s/AC_LIBOBJ\(devpoll\)/: ;/g; 116 s/AC_LIBOBJ\(devpoll\)/: ;/g;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines