bibtex.test 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #! /bin/sh
  2. # Copyright (C) 2006, 2007 Free Software Foundation, Inc.
  3. #
  4. # This file is part of GNU Texinfo.
  5. #
  6. # GNU Texinfo is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License,
  9. # or (at your option) any later version.
  10. #
  11. # GNU Texinfo is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. required='hevea'
  19. . ./defs || exit 1
  20. set -e
  21. create_input_tex <<EOF
  22. \cite{texinfo.doc}
  23. \bibliographystyle{plain}
  24. \bibliography{sample}
  25. EOF
  26. cat >sample.bib <<EOF
  27. @misc{texinfo.doc,
  28. title = "{GNU Texinfo}: The {GNU} documentation format",
  29. author = "Robert J. Chassell and Richard M. Stallman",
  30. year = "1988"
  31. }
  32. EOF
  33. # check HTML|INFO|TEXT|DVI|PDF
  34. # ----------------------------
  35. check ()
  36. {
  37. out=$1
  38. # Testing the local build mode.
  39. TEXI2DVI_pass --$out --batch --tidy input.tex
  40. # There should only be the DVI and the TEXI file.
  41. assert_files input.$out input.tex sample.bib input.t2d
  42. cp input.$out /tmp/foo
  43. rm input.$out
  44. }
  45. # Currently we don't use bibtex with hevea. This is to be fixed.
  46. for out in dvi pdf # html info text
  47. do
  48. check $out
  49. done