summaryrefslogtreecommitdiffstats
path: root/old-configure
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:00:40 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:00:40 +0100
commitc2fe43361f876c681a6ab553705fec6d62323c22 (patch)
treeb6880bb0f1facc62ccf1b384aadbc7ef6827eba3 /old-configure
parent49646f10f054863b17fcc203025fa65608b1ce94 (diff)
downloadmpv-c2fe43361f876c681a6ab553705fec6d62323c22.tar.bz2
mpv-c2fe43361f876c681a6ab553705fec6d62323c22.tar.xz
Switch PDF manual generation to rst2pdf
This finally gets rid of the LaTeX dependency. We should actually be using docultils directly here, but I didn't do this because of all the potential Python 2/3 breakage.
Diffstat (limited to 'old-configure')
-rwxr-xr-xold-configure16
1 files changed, 8 insertions, 8 deletions
diff --git a/old-configure b/old-configure
index 763d95b227..b77b1bd8ae 100755
--- a/old-configure
+++ b/old-configure
@@ -934,19 +934,19 @@ else
fi
echores "$_build_man"
-_rst2latex=rst2latex
-if [ -f "$(which rst2latex.py)" ] ; then
- _rst2latex=rst2latex.py
+_rst2pdf=rst2pdf
+if [ -f "$(which rst2pdf.py)" ] ; then
+ _rst2pdf=rst2pdf.py
fi
-echocheck "whether to build manual PDFs with rst2latex"
-texcheck() {
- echo test | $_rst2latex --config=DOCS/man/docutils.conf | pdflatex -halt-on-error -draftmode -output-directory="$mplayer_tmpdir"
+echocheck "whether to build manual PDFs with rst2pdf"
+pdfcheck() {
+ echo test | $_rst2pdf -c --repeat-table-rows -o "$mplayer_tmpdir/test.pdf"
}
if test "$_build_pdf" = auto ; then
_build_pdf=no
- command_check texcheck && _build_pdf=yes
+ command_check pdfcheck && _build_pdf=yes
else
_build_pdf=no
fi
@@ -3269,7 +3269,7 @@ GETCH = $_getch
TIMER = $_timer
RST2MAN = $_rst2man
BUILD_MAN = $_build_man
-RST2LATEX = $_rst2latex
+RST2PDF = $_rst2pdf
BUILD_PDF = $_build_pdf
EXESUF = $_exesuf