diff options
author | William Deegan <bill@baddogconsulting.com> | 2009-09-16 17:44:46 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2009-09-16 17:44:46 (GMT) |
commit | b5b3f7627bc52cdba2e4245fac3741727613db50 (patch) | |
tree | db2ca56ce5406363ccf08addbcde790819309d1b /test | |
parent | 499aa4440df6a3180c2890311ac53cc1e4cfc797 (diff) | |
download | SCons-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')
-rw-r--r-- | test/TEX/nomencl.py | 24 |
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')) |