summaryrefslogtreecommitdiffstats
path: root/test/TEX
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2009-09-16 17:44:46 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2009-09-16 17:44:46 (GMT)
commitb5b3f7627bc52cdba2e4245fac3741727613db50 (patch)
treedb2ca56ce5406363ccf08addbcde790819309d1b /test/TEX
parent499aa4440df6a3180c2890311ac53cc1e4cfc797 (diff)
downloadSCons-b5b3f7627bc52cdba2e4245fac3741727613db50.zip
SCons-b5b3f7627bc52cdba2e4245fac3741727613db50.tar.gz
SCons-b5b3f7627bc52cdba2e4245fac3741727613db50.tar.bz2
Fix tex code to handle broken nomenclature package. (Fixes test failure on centos5 slave).
Code by Rob Managan.
Diffstat (limited to 'test/TEX')
-rw-r--r--test/TEX/nomencl.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/test/TEX/nomencl.py b/test/TEX/nomencl.py
index 63359f5..2aadeef 100644
--- a/test/TEX/nomencl.py
+++ b/test/TEX/nomencl.py
@@ -56,16 +56,24 @@ test.write('nomencl.tex', r"""
\usepackage[refpage]{nomencl}
+%handle old version of nomencl.sty
+\ifdefined\makenomenclature
\makenomenclature
-
+\else
+\makeglossary
+\fi
\begin{document}
A nomenclature entry \nomenclature{gnu}{an animal or software group}
and another\nomenclature{nix}{not sure}.
+%handle old version of nomencl.sty
+\ifdefined\printnomenclature
\printnomenclature
-
+\else
+\printglossary
+\fi
\end{document}
""")
@@ -73,9 +81,9 @@ test.run(arguments = '.', stderr=None)
test.must_exist(test.workpath('nomencl.aux'))
test.must_exist(test.workpath('nomencl.fls'))
-test.must_exist(test.workpath('nomencl.nlg'))
-test.must_exist(test.workpath('nomencl.nlo'))
-test.must_exist(test.workpath('nomencl.nls'))
+#test.must_exist(test.workpath('nomencl.nlg')) # old version of nomencl.sty generates .glg, .glo, and .gls
+#test.must_exist(test.workpath('nomencl.nlo'))
+#test.must_exist(test.workpath('nomencl.nls'))
test.must_exist(test.workpath('nomencl.log'))
test.must_exist(test.workpath('nomencl.pdf'))
@@ -86,9 +94,9 @@ test.must_not_contain_any_line(test.stdout(), [x])
test.must_not_exist(test.workpath('nomencl.aux'))
test.must_not_exist(test.workpath('nomencl.fls'))
-test.must_not_exist(test.workpath('nomencl.nlg'))
-test.must_not_exist(test.workpath('nomencl.nlo'))
-test.must_not_exist(test.workpath('nomencl.nls'))
+#test.must_not_exist(test.workpath('nomencl.nlg'))
+#test.must_not_exist(test.workpath('nomencl.nlo'))
+#test.must_not_exist(test.workpath('nomencl.nls'))
test.must_not_exist(test.workpath('nomencl.log'))
test.must_not_exist(test.workpath('nomencl.pdf'))