]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Generate PDF documentation from man pages for windows releases.
authorDale Weiler <killfieldengine@gmail.com>
Wed, 21 Aug 2013 04:29:33 +0000 (04:29 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 21 Aug 2013 04:29:33 +0000 (04:29 +0000)
distro/win32/Makefile
doc/gmqpak.1
doc/qcvm.1

index 3a4ed2480b67cea82e5762c710cc10077d586197..99ae52e6a81c7814b1b0b3f6d610bb98e3925b2c 100644 (file)
@@ -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
 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:
        @zip -r $(BINDIR)-win32.zip $(BINDIR)
        @rm -rf $(BINDIR)
 clean:
index 967d43201ee9f97f5203a8ca421675e6a8dfa7ae..95ec50da21ad8f240090ad399b532868cbb4aa28 100644 (file)
@@ -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.
 .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 <http://graphitemaster.github.com/gmqcc>.
 .Sh BUGS
 .Sh AUTHOR
 See <http://graphitemaster.github.com/gmqcc>.
 .Sh BUGS
index 3a0562f0f4b357f2e753484660cabad5dc9e83d8..72b99ed695ebd2ca747790948eda533d180a15b0 100644 (file)
@@ -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;
 .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;
 .It Li 7) float vlen(vector) = #7;
 .D1 Get the length of a vector.
 .It Li 8) string etos(entity) = #8;