From 3ba8f15327dd72c7c4463939bc48e097aebea45a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 8 Nov 2009 18:57:19 +0000 Subject: further manpage improvements --- doc/Makefile | 8 +++++++- doc/uanytun.8.txt | 60 ++++++++++++++++++++++++++++--------------------------- version | 1 + 3 files changed, 39 insertions(+), 30 deletions(-) create mode 100644 version diff --git a/doc/Makefile b/doc/Makefile index 7ed7c50..280b6a5 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -33,10 +33,16 @@ ## along with uAnytun. If not, see . ## +VERSION=$(shell cat ../version) + all: manpage uanytun.8: uanytun.8.txt - a2x -f manpage uanytun.8.txt + a2x -f manpage $< + @ sed -i -e 's/\[FIXME: source\]/uanytun ${VERSION}/' $@ + @ sed -i -e 's/\[FIXME: manual\]/uanytun user manual/' $@ + @ sed -i -e 's/^uanytun$$/\\fBuanytun\\fR/' $@ + @ sed -i -e 's/^ \[ \([^ ]*\)/ [ \\fB\1\\fR/' $@ manpage: uanytun.8 diff --git a/doc/uanytun.8.txt b/doc/uanytun.8.txt index 0b58650..61b884d 100644 --- a/doc/uanytun.8.txt +++ b/doc/uanytun.8.txt @@ -8,35 +8,37 @@ uanytun - micro anycast tunneling daemon SYNOPSIS -------- -*uanytun* -[ *-h|--help* ] -[ *-D|--nodaemonize* ] -[ *-u|--username* ] -[ *-g|--groupname* ] -[ *-C|--chroot* ] -[ *-P|--write-pid* ] -[ *-L|--log* :[,[,[..]]] ] -[ *-i|--interface* ] -[ *-p|--port* ] -[ *-r|--remote-host* ] -[ *-o|--remote-port* ] -[ *-4|--ipv4-only* ] -[ *-6|--ipv6-only* ] -[ *-d|--dev* ] -[ *-t|--type* ] -[ *-n|--ifconfig* / ] -[ *-x|--post-up-script*