From d877e7b40f1969d758fa4ef92e0198b99b6bb341 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 Jul 2009 13:41:47 +0000 Subject: [PATCH] * Build a PDF of the manual. svn path=/nixpkgs/trunk/; revision=16316 --- doc/Makefile | 8 ++++++-- pkgs/top-level/make-tarball.nix | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index d81fd55c2c8b..3c2e8cb21b08 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,6 @@ # You may need to override this. docbookxsl = $(HOME)/.nix-profile/xml/xsl/docbook +dblatex = dblatex XMLLINT = xmllint --catalogs XSLTPROC = xsltproc --catalogs \ @@ -16,7 +17,7 @@ NEWS_OPTS = \ --stringparam section.autolabel.max.depth 0 \ --stringparam header.rule 0 -all: NEWS.html NEWS.txt manual.html +all: NEWS.html NEWS.txt manual.html manual.pdf NEWS.html: release-notes.xml $(XSLTPROC) --nonet --xinclude --output $@ $(NEWS_OPTS) \ @@ -34,4 +35,7 @@ manual.html: *.xml $(docbookxsl)/html/docbook.xsl manual.xml manual.pdf: *.xml - dblatex manual.xml + $(dblatex) \ + -P doc.collab.show=0 \ + -P latex.output.revhistory=0 \ + manual.xml diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix index c0240738be0d..29a4d8630a3f 100644 --- a/pkgs/top-level/make-tarball.nix +++ b/pkgs/top-level/make-tarball.nix @@ -19,6 +19,7 @@ releaseTools.makeSourceTarball { libxslt w3m nixUnstable # Needed to check whether the expressions are valid. + tetex dblatex ]; configurePhase = '' @@ -32,7 +33,8 @@ releaseTools.makeSourceTarball { buildPhase = '' echo "building docs..." - (cd doc && make docbookxsl=${docbook5_xsl}/xml/xsl/docbook) || false + export VARTEXFONTS=$TMPDIR/texfonts + make -C doc docbookxsl=${docbook5_xsl}/xml/xsl/docbook ln -s doc/NEWS.txt NEWS ''; @@ -72,6 +74,9 @@ releaseTools.makeSourceTarball { cp doc/manual.html $out/manual/index.html cp doc/style.css $out/manual/ echo "doc manual $out/manual" >> $out/nix-support/hydra-build-products + + cp doc/manual.pdf $out/manual.pdf + echo "doc-pdf manual $out/manual.pdf" >> $out/nix-support/hydra-build-products ''; meta = {