Explain how to remedy the TeX save_size error.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Mar 2008 23:00:52 +0000 (00:00 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Mar 2008 23:00:52 +0000 (00:00 +0100)
ChangeLog
doc/Makefile

index 78f3667..536b4a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-09  Bruno Haible  <bruno@clisp.org>
+
+       * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
+       Report and solution by Simon Josefsson.
+
 2008-03-06  Bruno Haible  <bruno@clisp.org>
 
        Make fflush after ungetc work on BSD platforms.
index dee7092..989236e 100644 (file)
@@ -16,7 +16,7 @@ TEXI2HTML = $(MAKEINFO) --no-split --reference-limit=2000 --html
        LANG= LC_MESSAGES= LC_ALL= LANGUAGE= makeinfo --no-split --reference-limit=2000 $<
 
 %.pdf: %.texi
-       texi2pdf $<
+       texi2pdf $< || { if texi2pdf $< 2>/dev/null | grep 'TeX capacity exceeded, sorry \[save size=' > /dev/null; then echo '*** You must increase the save_size in your texmf.cnf file.'; fi; exit 1; }
 
 all: info html dvi
 info: $(doc).info