File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 # Work around bugs in mdbook-epub.
6262 mkdir nix-pills.epub-fix
6363 ( cd nix-pills.epub-fix
64- unzip -q "../book/Nix Pills.epub"
64+ unzip -q "../book/epub/ Nix Pills.epub"
6565 # Fix invalid ids.
6666 sed -Ei 's/(id(ref)?=")([0-9])/\1p\3/g' OEBPS/content.opf
6767 sed -Ei 's/(id="|href="#)([0-9])/\1fn\2/g' OEBPS/20-basic-dependencies-and-hooks.html
7171 sed -Ei 's/("[0-9a-z-]+\.)md(["#])/\1html\2/g' OEBPS/*.html
7272 # Remove unnecessary page breaks, the sections are short.
7373 substituteInPlace OEBPS/stylesheet.css --replace-fail "page-break-before: always;" ""
74- zip -q "../book/Nix Pills.epub" **/*
74+ zip -q "../book/epub/ Nix Pills.epub" **/*
7575 )
7676
7777 runHook postBuild
8585 mkdir -p "$dst"
8686
8787 manual="$dst/nix-pills.epub"
88- mv "book/Nix Pills.epub" "$manual"
88+ mv "book/epub/ Nix Pills.epub" "$manual"
8989
9090 mkdir -p "$out/nix-support"
9191 echo "nix-build out $out" >> "$out/nix-support/hydra-build-products"
You can’t perform that action at this time.
0 commit comments