minix/external/bsd/libevent/man/fixman
David van Moolenbroek e985b92992 Import libevent
Change-Id: Ic75f4cac5eb07ffaba8f97d10673d7d7e2b1762d
2014-10-03 10:00:53 +00:00

18 lines
286 B
Bash
Executable file

#!/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}"