]> git.llucax.com Git - software/libev.git/blobdiff - import_libevent
add manpage to distro and install it
[software/libev.git] / import_libevent
index 2765caeb4f02ca6093c84b2ed589a875c81224c3..45f89aaa8c46fda1a219b47845303db847769882 100755 (executable)
@@ -14,6 +14,10 @@ perl -ne '
       print "#ifndef EV_STANDALONE\n$_#endif\n";
       next;
    }
       print "#ifndef EV_STANDALONE\n$_#endif\n";
       next;
    }
+   if (/#include "(unistd.h|sys\/time.h)"/) {
+      print "#ifndef WIN32\n$_#endif\n";
+      next;
+   }
    next if /#include "log.h"/;
 
    print;
    next if /#include "log.h"/;
 
    print;
@@ -64,7 +68,9 @@ perl -ne '
    s/\bepoll_sub.c\b//g;
    s/\bevent-internal.h\b//g;
    s/\bevsignal.h\b//g;
    s/\bepoll_sub.c\b//g;
    s/\bevent-internal.h\b//g;
    s/\bevsignal.h\b//g;
-   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 /;
+   s/-Wall//;
+   s/^(man_MANS\s*=\s*)/$1 ev.3 /;
+   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 /;
    s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /;
    s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /;
    s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /;
    s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /;
    s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /;
    s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /;