mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
Validate when building outputs
This commit is contained in:
parent
f67ea4a6d0
commit
30dd2d3feb
|
@ -11,7 +11,7 @@ clean:
|
||||||
validate: manual-full.xml
|
validate: manual-full.xml
|
||||||
jing "$$RNG" manual-full.xml
|
jing "$$RNG" manual-full.xml
|
||||||
|
|
||||||
out/html/index.html: manual-full.xml style.css
|
out/html/index.html: validate manual-full.xml style.css
|
||||||
mkdir -p out/html
|
mkdir -p out/html
|
||||||
xsltproc $$xsltFlags \
|
xsltproc $$xsltFlags \
|
||||||
--nonet --xinclude \
|
--nonet --xinclude \
|
||||||
|
@ -24,7 +24,7 @@ out/html/index.html: manual-full.xml style.css
|
||||||
mkdir -p out/html/images/callouts
|
mkdir -p out/html/images/callouts
|
||||||
cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/
|
cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/
|
||||||
|
|
||||||
out/epub/manual.epub: manual-full.xml
|
out/epub/manual.epub: validate manual-full.xml
|
||||||
mkdir -p out/epub/scratch
|
mkdir -p out/epub/scratch
|
||||||
xsltproc $$xsltFlags --nonet \
|
xsltproc $$xsltFlags --nonet \
|
||||||
--output out/epub/scratch/ \
|
--output out/epub/scratch/ \
|
||||||
|
|
|
@ -7,7 +7,7 @@ in
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "nixpkgs-manual";
|
name = "nixpkgs-manual";
|
||||||
|
|
||||||
buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ];
|
buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing ];
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue