File: include-value

package info (click to toggle)
texinfo 4.7-2.2sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,300 kB
  • ctags: 4,391
  • sloc: ansic: 46,392; sh: 6,029; perl: 715; makefile: 636; awk: 451; yacc: 288; lisp: 213; sed: 54
file content (22 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# $Id: include-value,v 1.2 2003/12/14 15:18:38 karl Exp $
# Test @value expansion in @include and @verbatiminclude names.

unset TEXINFO_OUTPUT
: ${srcdir=.}

../makeinfo -I $srcdir $srcdir/include-value.txi
exit_status=$?

if test $exit_status = 0; then
  # should have three instances of _included_,
  # and three of {included}.
  count=`grep _included_ include-value.info | wc -l`
  test $count = 3 || exit_status=`expr $exit_status + 1`

  count=`grep '{included}' include-value.info | wc -l`
  test $count = 3 || exit_status=`expr $exit_status + 1`
fi

rm -f include-value.info
exit $exit_status