* 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.
|
# You may need to override this.
|
||||||
docbookxsl = $(HOME)/.nix-profile/xml/xsl/docbook
|
docbookxsl = $(HOME)/.nix-profile/xml/xsl/docbook
|
||||||
|
dblatex = dblatex
|
||||||
|
|
||||||
XMLLINT = xmllint --catalogs
|
XMLLINT = xmllint --catalogs
|
||||||
XSLTPROC = xsltproc --catalogs \
|
XSLTPROC = xsltproc --catalogs \
|
||||||
@ -16,7 +17,7 @@ NEWS_OPTS = \
|
|||||||
--stringparam section.autolabel.max.depth 0 \
|
--stringparam section.autolabel.max.depth 0 \
|
||||||
--stringparam header.rule 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
|
NEWS.html: release-notes.xml
|
||||||
$(XSLTPROC) --nonet --xinclude --output $@ $(NEWS_OPTS) \
|
$(XSLTPROC) --nonet --xinclude --output $@ $(NEWS_OPTS) \
|
||||||
@ -34,4 +35,7 @@ manual.html: *.xml
|
|||||||
$(docbookxsl)/html/docbook.xsl manual.xml
|
$(docbookxsl)/html/docbook.xsl manual.xml
|
||||||
|
|
||||||
manual.pdf: *.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
|
libxslt
|
||||||
w3m
|
w3m
|
||||||
nixUnstable # Needed to check whether the expressions are valid.
|
nixUnstable # Needed to check whether the expressions are valid.
|
||||||
|
tetex dblatex
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
@ -32,7 +33,8 @@ releaseTools.makeSourceTarball {
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
echo "building docs..."
|
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
|
ln -s doc/NEWS.txt NEWS
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -72,6 +74,9 @@ releaseTools.makeSourceTarball {
|
|||||||
cp doc/manual.html $out/manual/index.html
|
cp doc/manual.html $out/manual/index.html
|
||||||
cp doc/style.css $out/manual/
|
cp doc/style.css $out/manual/
|
||||||
echo "doc manual $out/manual" >> $out/nix-support/hydra-build-products
|
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 = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user