~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to makeinfo/tests/include-value

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# $Id: include-value,v 1.3 2004/04/11 17:56:47 karl Exp $
 
3
# Test @value expansion in @include and @verbatiminclude names.
 
4
 
 
5
unset TEXINFO_OUTPUT
 
6
: ${srcdir=.}
 
7
 
 
8
../makeinfo -I $srcdir $srcdir/include-value.txi
 
9
exit_status=$?
 
10
 
 
11
if test $exit_status = 0; then
 
12
  # should have three instances of _included_,
 
13
  # and three of {included}.
 
14
  count=`grep _included_ include-value.info | wc -l`
 
15
  test $count = 3 || exit_status=`expr $exit_status + 1`
 
16
 
 
17
  count=`grep '{included}' include-value.info | wc -l`
 
18
  test $count = 3 || exit_status=`expr $exit_status + 1`
 
19
fi
 
20
 
 
21
rm -f include-value.info
 
22
exit $exit_status