include-value 659 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # $Id: include-value,v 1.5 2010-12-04 00:05:54 karl Exp $
  3. # Public domain. Test @value expansion in @include and @verbatiminclude names.
  4. unset TEXINFO_OUTPUT LANG LANGUAGE
  5. LC_ALL=POSIX; export LC_ALL
  6. : ${srcdir=.}
  7. ../makeinfo -I $srcdir $srcdir/include-value.txi
  8. exit_status=$?
  9. if test $exit_status = 0; then
  10. # should have three instances of _included_,
  11. # and three of {included}.
  12. count=`grep -c _included_ include-value.info`
  13. test $count = 3 || exit_status=`expr $exit_status + 1`
  14. count=`grep -c '{included}' include-value.info`
  15. test $count = 3 || exit_status=`expr $exit_status + 1`
  16. fi
  17. rm -f include-value.info
  18. exit $exit_status