From: Valentin Vidic Date: Mon, 14 Apr 2008 13:26:14 +0000 (+0200) Subject: Prevent latex from adding empty pages. X-Git-Tag: debian/4.0.2~7 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=3b15bf59bbc191eb9b94fab0e6e1620cb47a38d8;p=carnet-upgrade.git Prevent latex from adding empty pages. --- diff --git a/debian/fix_latex b/debian/fix_latex new file mode 100755 index 0000000..96179e0 --- /dev/null +++ b/debian/fix_latex @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$1" = "-l" ]; then + # ignore lang settings + shift 2 +fi + +# prevent latex from adding empty pages +sed '1s|^\(\\documentclass\[.*\)\(\]{book}\)|\1,openany\2|' <$1 >$2 diff --git a/debian/rules b/debian/rules index 15f214a..acf3b06 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,7 @@ build-stamp: doc/carnet-upgrade.sgml mv doc/index.html doc/carnet-upgrade.html # Build pdf docs - (cd doc; debiandoc2pdf -l hr_HR.UTF-8 carnet-upgrade.sgml) + (cd doc; debiandoc2pdf -l hr_HR.UTF-8 -s ../debian/fix_latex carnet-upgrade.sgml) rm doc/carnet-upgrade.tpt touch $@