diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 12:14:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 12:14:44 +0200 |
commit | 4d606849c74a2effc05a595368d2d0b48acf880e (patch) | |
tree | 5a9c09860864f087c83c4d9f704d8a4fe48ec3a4 /doc/cli.sh | |
parent | 5739fce028916724e08d62ef7f35f8faed1b94b1 (diff) |
Setup manual infra
Diffstat (limited to 'doc/cli.sh')
-rwxr-xr-x | doc/cli.sh | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -13,6 +13,9 @@ while [ $# -gt 0 ]; do case $1 in --clean) rm -f bpkg*.xhtml bpkg*.1 + rm -f build2-package-manager-manual*.ps \ + build2-package-manager-manual*.pdf \ + build2-package-manager-manual.xhtml exit 0 ;; *) @@ -58,3 +61,18 @@ pkg-test pkg-uninstall pkg-unpack pkg-update pkg-verify rep-create rep-info" for p in $pages; do compile $p $o done + +# Manual. +# +cli -I .. -v version="$version" -v date="$date" \ +--generate-html --html-suffix .xhtml \ +--html-prologue-file doc-prologue.xhtml \ +--html-epilogue-file doc-epilogue.xhtml \ +--link-regex '%b([-.].+)%../../build2/doc/b$1%' \ +--output-prefix build2-package-manager- manual.cli + +html2ps -f doc.html2ps:a4.html2ps -o build2-package-manager-manual-a4.ps build2-package-manager-manual.xhtml +ps2pdf14 -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true build2-package-manager-manual-a4.ps build2-package-manager-manual-a4.pdf + +html2ps -f doc.html2ps:letter.html2ps -o build2-package-manager-manual-letter.ps build2-package-manager-manual.xhtml +ps2pdf14 -sPAPERSIZE=letter -dOptimize=true -dEmbedAllFonts=true build2-package-manager-manual-letter.ps build2-package-manager-manual-letter.pdf |