aboutsummaryrefslogtreecommitdiff
path: root/doc/cli.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-31 09:59:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-31 09:59:24 +0200
commitdd8127a95120fbf9a867a5546af1b41430ece729 (patch)
treef36f0dda0c25e8cfe938f56ed4324c58772c4721 /doc/cli.sh
parentabefd6d92d843551679f777c21fa98ec4c5f05d0 (diff)
Generate both A4 and Letter PDF/PS
Diffstat (limited to 'doc/cli.sh')
-rwxr-xr-xdoc/cli.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/cli.sh b/doc/cli.sh
index 2b0d030..b12cc46 100755
--- a/doc/cli.sh
+++ b/doc/cli.sh
@@ -12,8 +12,8 @@ function error () { info "$*"; exit 1; }
while [ $# -gt 0 ]; do
case $1 in
--clean)
- rm -f build2-toolchain-intro.xhtml build2-toolchain-intro.ps \
-build2-toolchain-intro.pdf
+ rm -f build2-toolchain-intro.xhtml build2-toolchain-intro*.ps \
+build2-toolchain-intro*.pdf
exit 0
;;
*)
@@ -30,5 +30,8 @@ cli -I .. -v version="$version" -v date="$date" \
--link-regex '%bpkg([-.].+)%../../bpkg/doc/bpkg$1%' \
--output-prefix build2-toolchain- intro.cli
-#html2ps -f intro.html2ps -o build2-toolchain-intro.ps build2-toolchain-intro.xhtml
-#ps2pdf14 build2-toolchain-intro.ps build2-toolchain-intro.pdf
+html2ps -f intro.html2ps:a4.html2ps -o build2-toolchain-intro-a4.ps build2-toolchain-intro.xhtml
+ps2pdf14 -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true build2-toolchain-intro-a4.ps build2-toolchain-intro-a4.pdf
+
+html2ps -f intro.html2ps:letter.html2ps -o build2-toolchain-intro-letter.ps build2-toolchain-intro.xhtml
+ps2pdf14 -sPAPERSIZE=letter -dOptimize=true -dEmbedAllFonts=true build2-toolchain-intro-letter.ps build2-toolchain-intro-letter.pdf