Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libevent/man Add build glue



details:   https://anonhg.NetBSD.org/src/rev/a8160d894e51
branches:  trunk
changeset: 786012:a8160d894e51
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 11 16:06:47 2013 +0000

description:
Add build glue

diffstat:

 external/bsd/libevent/man/Makefile |  54 ++++++++++++++++++++++++++++++++++++++
 external/bsd/libevent/man/fixman   |  18 ++++++++++++
 2 files changed, 72 insertions(+), 0 deletions(-)

diffs (80 lines):

diff -r 65d4c5871c56 -r a8160d894e51 external/bsd/libevent/man/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libevent/man/Makefile        Thu Apr 11 16:06:47 2013 +0000
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.1 2013/04/11 16:06:47 christos Exp $
+
+# Try to undo the doxygen lossage in the man pages.
+
+HSRCS1= \
+buffer.h.3 \
+buffer_compat.h.3 \
+dns.h.3 \
+dns_compat.h.3 \
+http.h.3 \
+http_compat.h.3 \
+rpc.h.3 \
+rpc_compat.h.3 \
+tag.h.3 \
+tag_compat.h.3 \
+thread.h.3 \
+util.h.3
+
+HMAN1=${HSRCS1:S/^/ev/g:S/.h.3/.3/g}
+
+.for i in ${HSRCS1}
+ev${i:S/.h.3/.3/g}: $i
+       ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
+.endfor
+
+HSRCS2= \
+bufferevent_ssl.h.3 \
+event.h.3 \
+event_compat.h.3
+
+.for i in ${HSRCS2}
+${i:S/.h.3/.3/g}: $i
+       ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
+.endfor
+
+HMAN2=${HSRCS2:S/.h.3/.3/g}
+
+MAN+= \
+bufferevent.3 \
+deprecated.3 \
+evbuffer_cb_info.3 \
+evbuffer_iovec.3 \
+evbuffer_ptr.3 \
+event_base.3 \
+event_config.3 \
+evthread_condition_callbacks.3 \
+evthread_lock_callbacks.3 \
+evutil_addrinfo.3
+
+MAN+= ${HMAN1} ${HMAN2}
+
+CLEANFILES+=${HMAN1} ${HMAN2}
+
+.include <bsd.man.mk>
diff -r 65d4c5871c56 -r a8160d894e51 external/bsd/libevent/man/fixman
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libevent/man/fixman  Thu Apr 11 16:06:47 2013 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+SED="$1"
+in="$2"
+out="$3"
+name="${in##*/}"
+
+case "${name}" in
+ev*|bufferev*) ev=;;
+*)             ev=ev;;
+esac
+
+${SED} \
+       -e "s@event2/${name%.3}@${ev}${name%.h.3}@g" \
+       -e '/^\.SH SYNOPSIS/,/^\.PP/ {
+       /^.PP/a\
+\\fC#include <event2/'${name%.h.3}'\\\&.h>\\fP\
+.br
+}' < "${in}" > "${out}"



Home | Main Index | Thread Index | Old Index