From: Dale Weiler Date: Wed, 21 Aug 2013 04:29:33 +0000 (+0000) Subject: Generate PDF documentation from man pages for windows releases. X-Git-Tag: 0.3.5~153 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bbab8969d1eb573f74b061eb85d308332777fad7;p=xonotic%2Fgmqcc.git Generate PDF documentation from man pages for windows releases. --- 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;