summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile8
1 files changed, 7 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
##
+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