defxcond 493 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # $Id: defxcond,v 1.3 2010-12-04 00:05:53 karl Exp $
  3. # Public domain. Test conditionalized @deffnx.
  4. # Report from: Akim Demaille, 14 Aug 2003 12:10:37 +0200.
  5. unset TEXINFO_OUTPUT LANG LANGUAGE
  6. LC_ALL=POSIX; export LC_ALL
  7. : ${srcdir=.}
  8. test=defxcond
  9. ../makeinfo -Dbar -o $test.out $srcdir/$test.txi || exit 1
  10. grep ' -- bar:' $test.out >/dev/null || exit 2
  11. ../makeinfo -Ubar -o $test.out $srcdir/$test.txi || exit 3
  12. grep ' -- bar:' $test.out >/dev/null && exit 4
  13. rm -f $test.out