forked from mirrors/nixpkgs
* Build a PDF of the manual.
svn path=/nixpkgs/trunk/; revision=16316
This commit is contained in:
parent
ffd635cc57
commit
d877e7b40f
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue