work around a bug in latex; initialize the latex system
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 4 Jun 2011 12:23:46 +0000 (14:23 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 4 Jun 2011 12:23:46 +0000 (14:23 +0200)
latex-first-run.sh [new file with mode: 0755]
vbuild-nightly.sh

diff --git a/latex-first-run.sh b/latex-first-run.sh
new file mode 100755 (executable)
index 0000000..95dc870
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+echo "Running latex and pdflatex on a dummy input"
+cd /tmp
+cat > latex-dummy.tex <<EOF
+\\documentclass{article}
+\\begin{document}
+a dummy text to make sure latex is properly configured, as we're seeing weird error messages like
+I can't find the format file pdflatex.fmt!
+\\end{document}
+EOF
+latex latex-dummy < /dev/null >& /dev/null
+pdflatex latex-dummy < /dev/null >& /dev/null
+
index e03881f..00e8e67 100755 (executable)
@@ -216,6 +216,9 @@ function build () {
 
     MAKEVARS=("BASE=${BASE}" "${MAKEVARS[@]}")
 
+    # initialize latex
+    /build/latex-first-run.sh
+
     # stage1
     make -C /build $DRY_RUN "${MAKEVARS[@]}" stage1=true 
     # versions