From bbab8969d1eb573f74b061eb85d308332777fad7 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 21 Aug 2013 04:29:33 +0000 Subject: [PATCH] Generate PDF documentation from man pages for windows releases. --- distro/win32/Makefile | 5 +++++ doc/gmqpak.1 | 1 + doc/qcvm.1 | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/distro/win32/Makefile b/distro/win32/Makefile index 3a4ed24..99ae52e 100644 --- a/distro/win32/Makefile +++ b/distro/win32/Makefile @@ -8,6 +8,11 @@ BINDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH) base: $(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) clean $(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) DESTDIR=distro/win32/$(BINDIR) PREFIX=/ install + @mkdir -p $(BINDIR)/doc + @groff -mandoc $(BINDIR)/man1/gmqpak.1 | ps2pdf - $(BINDIR)/doc/gmqpak.pdf + @groff -mandoc $(BINDIR)/man1/qcvm.1 | ps2pdf - $(BINDIR)/doc/qcvm.pdf + @groff -mandoc $(BINDIR)/man1/gmqcc.1 | ps2pdf - $(BINDIR)/doc/gmqcc.pdf + @rm -rf $(BINDIR)/man1/ @zip -r $(BINDIR)-win32.zip $(BINDIR) @rm -rf $(BINDIR) clean: diff --git a/doc/gmqpak.1 b/doc/gmqpak.1 index 967d432..95ec50d 100644 --- a/doc/gmqpak.1 +++ b/doc/gmqpak.1 @@ -31,6 +31,7 @@ Here's some examples of how to use the utility to manipulate PAK files. .D1 creates a PAK with the files specified .It Li gmqpak -file new1.pak -c directory. .D1 creates a PAK from files within the directory, including subdirectories and files. +.El .Sh AUTHOR See . .Sh BUGS diff --git a/doc/qcvm.1 b/doc/qcvm.1 index 3a0562f..72b99ed 100644 --- a/doc/qcvm.1 +++ b/doc/qcvm.1 @@ -79,7 +79,7 @@ The following builtin functions are available: .It Li 5) string vtos(vector) = #5; .D1 Convert a vector to a string. .It Li 6) void error(string...) = #6; -.D1 Print at most 8 strings to stdout and then exit with an error. +.D1 Print strings to stdout and then exit with an error (limited to 8 arguments) .It Li 7) float vlen(vector) = #7; .D1 Get the length of a vector. .It Li 8) string etos(entity) = #8; -- 2.39.2