code:
$Id$
install-info/tests/README

  Copyright 2008, 2012 Free Software Foundation, Inc.

  Copying and distribution of this file, with or without modification,
  are permitted in any medium without royalty provided the copyright
  notice and this notice are preserved.

This file describes each of the numbered install-info tests.

0001: The 99% case. Installing an Info file.  Take a single entry from the
      Info file and put it into a pre-existing section in the DIR file.
0002: Installing an Info file.  Take two entries from the Info file and put
      it into a pre-existing section in the DIR file.
0003: Installing an Info file.  Take two entries from the Info file and put
      it into a pre-existing section in the DIR file.  The entries are
      described in two different `START-INFO-DIR-ENTRY' declarations.
0004: Installing an Info file.  Take two entries from the Info file and put
      it into two pre-existing sections in the DIR file.  The entries are
      described in two different `INFO-DIR-SECTION' and `START-INFO-DIR-ENTRY'
      declarations.
0005: Installing an Info file.  Take two entries from the Info file and put
      it into one pre-existing section and one non-existing section in the
      DIR file.  The entries are described in two different `INFO-DIR-SECTION'
      and `START-INFO-DIR-ENTRY' declarations.
0006: The 99% case, try 2.  Installing an Info file.  Take a single entry
      from the Info file and put it into a pre-existing section in the DIR
      file, but this time the name is not capitalized.
0007: The 99% case, try 3.  Installing an Info file.  Take a single entry
      from the Info file and put it into a pre-existing section in the DIR
      file, but this time the entry is not the final entry in the section.
0008: The 99% case, try 4.  Installing an Info file.  Take a single entry
      from the Info file and put it into a pre-existing section in the DIR
      file, but this time the entry's description spans more than one line.
0009: The 99% case, try 5.  Installing an Info file.  Take a single entry
      from the Info file and put it into a pre-existing section in the DIR
      file, but this time the entry's description does not start on the
      33rd column and requires indentation.
0010: The 99% case, try 6.  Installing an Info file.  Take a single entry
      from the Info file and put it into a pre-existing section in the DIR
      file, but this time the entry's one line description requires
      multi-line indentation.
0011: Installing an Info file.  Take a single entry from the Info file and
      put it into a pre-existing section in the DIR file, but this time do
      not indent the description.
0012: Installing an Info file.  Take a single entry from the Info file and
      put it into a pre-existing section in the DIR file, but this time the
      entry already exists and will be replaced.
0013: Installing an Info file.  Take a single entry from the Info file and
      put it into a pre-existing section in the DIR file, but this time the
      entry already exists and the --keep-old option is used to override the
      replacement.
0014: Installing an Info file.  Take a single entry from the Info file and
      put it into a pre-existing section in the DIR file, but this time the
      entry already exists with a multi-line description and will be
      replaced with a single-line description.
0015: Installing an Info file.  Take a single entry from the Info file and
      put it into a pre-existing section in the DIR file, but this time the
      entry already exists with a single-line description and will be
      replaced with a multi-line description.
0016: Installing an Info file.  The Info file does not contain section or
      entry hints, and neither a section nor an entry is specified on the
      command-line.  Installation does not occur, but is not an error.
0017: Installing an initial Info file into a minimal DIR file.
0018: Installing an initial Info file into an empty (0 byte) DIR file.
      Installation does not occur, and is an error.
0019: Installing an initial Info file into an empty (2 byte) DIR file.
      Installation does not occur, and is an error.
0020: Installing an Info file.  The Info file does not contain section or
      entry hints, and a section is not specified on the command-line, but
      a --description is.
0021: Installing an Info file.  The Info file does not contain section or
      entry hints, and a pre-existing --section is stated on the command-line
      along with a --description.
0022: Installing an Info file.  The Info file does not contain section or
      entry hints, and a --name is specified on the command-line.  The NAME
      starts with *, so the whole name (up to the period) is replaced.
0023: Installing an Info file.  The Info file does not contain section or
      entry hints, and a --name is specified on the command-line.  The NAME
      does not start with a *, so just the name (up to the colon) is replaced.
0024: Installing an Info file.  The Info file contains section and entry
      hints, but we override the section with a non-existing one from the
      command-line.
0025: Installing an Info file.  The Info file contains section and entry
      hints, but we override the section with an existing one from the
      command-line.
0026: Installing an Info file.  The Info file contains section and entry
      hints, but we override the entry with an --entry on the command-line.
0027: Installing an Info file.  The Info file contains section and entry
      hints, but we override the entry with an --entry on the command-line,
      and we also override the section with a --section on the command-line.
0028: Installing an Info file.  The Info file contains section and entry
      hints, but we override the name portion of the entry with a --name
      on the command-line.  The NAME starts with a `*' so it replaces the
      entire name, up to the period.
0029: Installing an Info file.  The Info file contains section and entry
      hints, but we override the name portion of the entry with a --name
      on the command-line.  The NAME does not start with a `*' so it
      replaces the name, up to the colon and presumes the basename.
0030: Installing an Info file.  The Info file contains section and entry
      hints, but we override the description portion of the entry with a
      --description on the command-line.
0031: Installing an Info file.  The Info file contains section and entry
      hints, but we override the description and the name with
      --description and --name options on the command-line.  The NAME starts
      with a `*' so it replaces the entire name, up to the period.
0032: Installing an Info file.  The Info file contains section and entry
      hints, but we try to override the section with a regular expression
      that does not match any existing sections in the DIR file.  The
      overriding cannot take place, and the entry is installed in the section
      specified in the Info file.
0033: Installing an Info file.  The Info file contains an entry hint, but no
      section hint.  We try to specify the section with a --regex option on
      the command-line, but the regular expression does not match any
      existing sections in the DIR file.
0034: Installing an Info file.  The Info file contains an entry hint, but
      no section hint, and we try to specify the section with a regular
      expression that does not match any existing sections in the DIR file.
      We also specify a --section on the command-line to ensure that the
      entry will be installed in a section that we explicitly name.
0035: Installing an Info file.  The Info file contains section and entry
      hints, but we try to specify the section with a regular expression
      that does not match any existing sections in the DIR file.  We also
      specify a --section on the command-line to ensure that the entry will
      be installed in a section that we explicitly name.
0036: Installing an Info file.  The Info file contains entry and section
      hints, but try to specify the section with a --regex option on
      the command-line, and the regular expression matches an existing
      section in the DIR file.
0037: Installing an Info file.  The Info file contains section and entry
      hints, but we try to specify the section with a regular expression
      that does not match any existing sections in the DIR file.  We also
      specify a --section on the command-line to ensure that the entry will
      be installed in a section that we explicitly name.  We use the
      alternative Debian --section REGEX TITLE syntax instead of the normal
      GNU syntax.
0038: Installing an Info file.  The Info file does not contain section or
      entry hints, and we specify that two entries go into two sections on
      the command-line.  One section already exists, and the other doesn't.
0039: Installing an Info file.  The Info file contains section and entry
      hints, but we override the entry with an --entry option on the
      command-line.  The entry has a multi-line description and is not
      indented.
0040: Installing an Info file.  The Info file contains section and entry
      hints, but we override the entry with --name and --description options
      on the command-line.  The entry is not indented.
0041: Installing an Info file.  The Info file contains section and entry
      hints, and we're installing the entry into a gzipped DIR file.
0042: Installing an Info file.  The Info file contains section and entry
      hints for two entries in two sections.  Both of the sections do not
      already exist in the DIR file.  The sections will be added prior to
      all other sections due to the alphabetic ordering of section names.
0043: Installing an Info file.  The Info file contains section and entry
      hints, and we're going to install the new section admist many other
      sections.  E.g. instead of always at the very bottom or at the very
      top.
0044: The 99% case.  Removing an Info file.  The Info file is responsible
      for a single entry in the DIR file.
0045: Removing an Info file.  The Info file is responsible for many entries
      in the DIR file.
0046: Removing an Info file.  We no longer have the Info file, so we
      specify --remove-exactly to remove it instead.
0047: Removing an Info file.  The Info file is responsible for the final
      entry in the DIR file.  The section also gets removed.
0048: Removing an Info file.  The Info file is responsible for the final
      entry in the DIR file, but we want to keep the section heading, so
      we specify --keep-old.
0049: Removing an Info file.  The Info file is not responsible for any
      entries in the DIR file.  A warning is issued, but it isn't an error.
0050: Removing an Info file.  The Info file is responsible for a single
      entry in the gzipped DIR file.
0051: Allow periods in menu item name, e.g., config.status.
0052: Allow periods in node name also, e.g., "config.status Invocation".
0053: Check newline handling in input dir entries.

path: install-info/tests/README


code:
# @configure_input@
# $Id$
#
# Copyright 2008, 2012, 2013, 2014, 2015 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# (Some snippets copied from Autoconf and/or util/defs.in.)
# Make sure we override the user shell.
SHELL='@SHELL@'
export SHELL

# unsetting an already-unset variable fails with BSD sh.
CDPATH=
unset CDPATH

# Ensure we are running from the right directory.
if test ! -f ./defs; then
   echo "$0: defs: not found in current directory." 1>&2
   exit 1
fi

# If srcdir is not set, then we are not running from `make check'.
if test -z "$srcdir"; then
   VERBOSE=x
   # compute $srcdir.
   srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'`
   test $srcdir = $0 && srcdir=.
fi

# Get messages in English
LC_ALL=C ; export LC_ALL

# Use first line to run valgrind on the tests.  After "make check",
# check for errors with "grep ERROR\ SUM *.log".
#valgrind='valgrind '
valgrind=

# Two variables we use in the test scripts:
top_builddir='@top_builddir@'
install_info=${valgrind}${top_builddir}/install-info/ginstall-info
export install_info
#
top_srcdir='@top_srcdir@'
testdir=${top_srcdir}/install-info/tests
export testdir

if test -z "$TMPDIR"; then
  TMPDIR=/tmp
  export TMPDIR
fi

# In case someone pedantic insists on using grep -E.
: ${EGREP=egrep}

# Systems which define $COMSPEC or $ComSpec use semicolons to separate
# directories in TEXINPUTS -- except for Cygwin et al., where COMSPEC
# might be inherited, but : is used.
if test -n "$COMSPEC$ComSpec" \
   && uname | $EGREP -iv 'cygwin|mingw|djgpp' >/dev/null; then
  path_sep=";"
else
  path_sep=":"
fi

# Return true if PROG is somewhere in PATH, else false.
findprog ()
{
  local saveIFS="$IFS"
  IFS=$path_sep  # break path components at the path separator
  for dir in $PATH; do
    IFS=$saveIFS
    # The basic test for an executable is `test -f $f && test -x $f'.
    # (`test -x' is not enough, because it can also be true for directories.)
    # We have to try this both for $1 and $1.exe.
    #
    # On Cygwin and DJGPP, `test -x' also looks for .exe.  On Cygwin,
    # also `test -f' has this enhancement, but not on DJGPP.  Both are
    # design decisions, so there is little chance to make them consistent.
    # So we must check for .exe explicitly.
    #
    if   { test -f "$dir/$1"     && test -x "$dir/$1"; } \
      || { test -f "$dir/$1.exe" && test -x "$dir/$1.exe"; }; then
      return 0
    fi
  done
  return 1
}

if findprog mktemp; then :; else
# Some deficient proprietary systems lack mktemp; kowtow to them.
# Our mktemp substitute doesn't need all the features of real mktemp;
# our tests here only use it in the most simplistic way, to create a
# temp file.  The autoconf manual suggests doing it in a temporary
# directory (mode 700), so do that.  ($RANDOM may expand to nothing, but
# that's ok.) We do not even bother to expand the X's in the template ...
mktemp ()
{
  dir=$TMPDIR/iimktemp$$-$RANDOM
  (umask 077 && mkdir "$dir")
  touch "$dir/$1" || return 1
  echo "$dir/$1"
}
fi

repo_name: mthl/texinfo

license: mit


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii01-XXXXXXXX`
cp ${testdir}/ii-0001-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0001-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0001-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.
* Wildebeest: (gnu).            Wildebeest native to Africa.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Wildebeest: (gnu).             Wildebeest native to Africa.
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii02-XXXXXXXX`
cp ${testdir}/ii-0002-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0002-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0002-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

START-INFO-DIR-ENTRY
* Wildebeest: (gnu).             Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii03-XXXXXXXX`
cp ${testdir}/ii-0003-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0003-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0003-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.

Antlered Animals
* Deer: (deer).                 Ruminent antlered mammal.
* Wildebeest: (gnu).            Wildebeest native to Africa.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.

Antlered Animals
* Deer: (deer).                 Ruminent antlered mammal.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

INFO-DIR-SECTION Antlered Animals
START-INFO-DIR-ENTRY
* Wildebeest: (gnu).             Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii04-XXXXXXXX`
cp ${testdir}/ii-0004-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0004-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0004-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.

Antlered Animals
* Wildebeest: (gnu).            Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii05-XXXXXXXX`
cp ${testdir}/ii-0005-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0005-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0005-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* gnu: (gnu).                   Wildebeest native to Africa.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii06-XXXXXXXX`
cp ${testdir}/ii-0006-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0006-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0006-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.
* Hippopotamus: (hippo).        A large semi-aquatic African mammal.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Hippopotamus: (hippo).        A large semi-aquatic African mammal.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii07-XXXXXXXX`
cp ${testdir}/ii-0007-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0007-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0007-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Large hooved animal native to the African
                                  savannah.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                   Large hooved animal native to the African
                                  savannah.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii08-XXXXXXXX`
cp ${testdir}/ii-0008-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0008-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0008-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).  Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii09-XXXXXXXX`
cp ${testdir}/ii-0009-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0009-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0009-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).              Large hooved animal native to the African savannah.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii10-XXXXXXXX`
cp ${testdir}/ii-0010-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0010-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0010-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).              Large hooved animal native to the African savannah.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii11-XXXXXXXX`
cp ${testdir}/ii-0011-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --no-indent ${testdir}/ii-0011-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0011-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Large hooved Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii12-XXXXXXXX`
cp ${testdir}/ii-0012-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0012-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0012-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                   Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii13-XXXXXXXX`
cp ${testdir}/ii-0013-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --keep-old ${testdir}/ii-0013-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0013-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Large hooved animal native to Africa.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   A large hooved Wildebeest native to the
                                  African savannah.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                   Large hooved animal native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii14-XXXXXXXX`
cp ${testdir}/ii-0014-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0014-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0014-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Large hooved animal native to the African
                                  savannah.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                   Large hooved animal native to the African
                                  savannah.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii15-XXXXXXXX`
cp ${testdir}/ii-0015-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0015-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0015-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii16-XXXXXXXX`
cp ${testdir}/ii-0016-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --silent ${testdir}/ii-0016-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0016-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii17-XXXXXXXX`
cp ${testdir}/ii-0017-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0017-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0017-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the file .../info/dir, which contains the
topmost node of the Info hierarchy, called (dir)Top.
The first time you invoke Info you start off looking at this node.

File: dir,	Node: Top	This is the top of the INFO tree

  This (the Directory node) gives a menu of major topics.
  Typing "q" exits, "H" lists all Info commands, "d" returns here,
  "h" gives a primer for first-timers,
  "mEmacs<Return>" visits the Emacs manual, etc.

  In Emacs, you can click mouse button 2 on a menu item or cross reference
  to select it.

* Menu:

Animals
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii18-XXXXXXXX`
cp ${testdir}/ii-0018-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0018-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0018-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii19-XXXXXXXX`
cp ${testdir}/ii-0019-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0019-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0019-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.

Miscellaneous
* ii-0020-input-info-file: (ii-0020-input-info-file).
                                Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii20-XXXXXXXX`
cp ${testdir}/ii-0020-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi
${install_info} --description='Wildebeest native to Africa.' ${testdir}/ii-0020-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0020-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* ii-0021-input-info-file: (ii-0021-input-info-file).
                                Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii21-XXXXXXXX`
cp ${testdir}/ii-0021-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi
${install_info} --section="Animals" --description='Wildebeest native to Africa.' ${testdir}/ii-0021-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0021-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Hippopotamus: (hippo).        A large semi-aquatic African mammal.

Miscellaneous
* Gnu: (gnu).


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Hippopotamus: (hippo).        A large semi-aquatic African mammal.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii22-XXXXXXXX`
cp ${testdir}/ii-0022-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --name='* Gnu: (gnu).' ${testdir}/ii-0022-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0022-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.

Miscellaneous
* Gnu: (ii-0023-input-info-file).


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii23-XXXXXXXX`
cp ${testdir}/ii-0023-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --name="Gnu" ${testdir}/ii-0023-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0023-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.

Antlered Animals
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii24-XXXXXXXX`
cp ${testdir}/ii-0024-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --section="Antlered Animals" ${testdir}/ii-0024-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0024-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
INFO-DIR-SECTION Antlered Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii25-XXXXXXXX`
cp ${testdir}/ii-0025-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --section="Animals" ${testdir}/ii-0025-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0025-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to the African savannah.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii26-XXXXXXXX`
cp ${testdir}/ii-0026-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --entry="* Gnu: (gnu).             Wildebeest native to the African savannah." ${testdir}/ii-0026-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0026-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.

Antlered Animals
* Gnu: (gnu).                   Wildebeest native to the African savannah.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii27-XXXXXXXX`
cp ${testdir}/ii-0027-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --entry="* Gnu: (gnu).             Wildebeest native to the African savannah." --section="Antlered Animals" ${testdir}/ii-0027-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0027-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Wildebeest: (gnu).            Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii28-XXXXXXXX`
cp ${testdir}/ii-0028-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --name="* Wildebeest: (gnu)." ${testdir}/ii-0028-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0028-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Wildebeest: (ii-0029-input-info-file).
                                Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii29-XXXXXXXX`
cp ${testdir}/ii-0029-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --name="Wildebeest" ${testdir}/ii-0029-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0029-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii30-XXXXXXXX`
cp ${testdir}/ii-0030-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --description="Wildebeest native to the African savannah." ${testdir}/ii-0030-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0030-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Wildebeest: (gnu).            Wildebeest native to the African savannah.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii31-XXXXXXXX`
cp ${testdir}/ii-0031-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --name="* Wildebeest: (gnu)." --description="Wildebeest native to the African savannah." ${testdir}/ii-0031-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0031-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii32-XXXXXXXX`
cp ${testdir}/ii-0032-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --regex='^Antlered Animals$' ${testdir}/ii-0032-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0032-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.

Miscellaneous
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii33-XXXXXXXX`
cp ${testdir}/ii-0033-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --regex='^Antlered Animals$' ${testdir}/ii-0033-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0033-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii34-XXXXXXXX`
cp ${testdir}/ii-0034-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --regex='^Antlered Animals$' --section="Animals" ${testdir}/ii-0034-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0034-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
INFO-DIR-SECTION Antlered Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii35-XXXXXXXX`
cp ${testdir}/ii-0035-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --regex='^Antlered Animals$' --section="Animals" ${testdir}/ii-0035-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0035-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii36-XXXXXXXX`
cp ${testdir}/ii-0036-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --regex='[Aa]nimal[s]' ${testdir}/ii-0036-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0036-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii37-XXXXXXXX`
cp ${testdir}/ii-0037-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --section '^Antlered Animals$' Animals ${testdir}/ii-0037-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0037-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).                   Wildebeest native to Africa.
* Wildebeest: (gnu).            Wildebeest native to the African savannah.

Antlered Animals
* Gnu: (gnu).                   Wildebeest native to Africa.
* Wildebeest: (gnu).            Wildebeest native to the African savannah.


code:
File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii38-XXXXXXXX`
cp ${testdir}/ii-0038-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --section="Animals" --section="Antlered Animals" --entry="* Gnu: (gnu).  Wildebeest native to Africa." --entry="* Wildebeest: (gnu).  Wildebeest native to the African savannah." ${testdir}/ii-0038-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0038-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu).  Wildebeest native to the African continent.
               (this item contains disputed material).


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii39-XXXXXXXX`
cp ${testdir}/ii-0039-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --entry="* Gnu: (gnu).  Wildebeest native to the African continent.
               (this item contains disputed material)."  --no-indent ${testdir}/ii-0039-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0039-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (gnu). A wildebeest native to the African savannah.


code:
INFO-DIR-SECTION Animals
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii40-XXXXXXXX`
cp ${testdir}/ii-0040-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --name="* Gnu: (gnu)." --description="A wildebeest native to the African savannah." --no-indent ${testdir}/ii-0040-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0040-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

tempfile=`mktemp ii41-XXXXXXXX`
outputdirfile=$tempfile.gz
cp ${testdir}/ii-0041-input-dir-file.gz $outputdirfile || exit $?

# when copying in distcheck, source will be readonly.
chmod u+rw $outputdirfile || exit $?

${install_info} ${testdir}/ii-0041-input-info-file $outputdirfile || exit $?

if findprog zdiff; then
  zdiff ${testdir}/ii-0041-expected-dir-file.gz $outputdirfile
  retval=$?
else
  retval=77
fi

rm -f $tempfile $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animal Kingdom
* Gnu: (gnu).                   Wildebeest native to Africa.

Animalia
* Gnu: (gnu).                   Wildebeest native to Africa.

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.


code:
INFO-DIR-SECTION Animalia
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY
INFO-DIR-SECTION Animal Kingdom
START-INFO-DIR-ENTRY
* Gnu: (gnu).                    Wildebeest native to Africa.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii42-XXXXXXXX`
cp ${testdir}/ii-0042-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0042-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0042-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Astronomy
* Mars: (mars).                 Postcards from the Red Planet.

Biology
* Alien Autopsy: (mars).        A biological account of an alien autopsy.

Chemistry
* Making Gold: (gold).          How to turn lead into gold.

Dentistry
* On the Cheap: (dentistry).    Do it yourself dentistry made easy.

Education
* Dog Training: (dogs).         Teaching old dogs new tricks.

Forestry
* The Last Tree: (forest).      Clear cutting practises in North America.

Geography
* The Dark Continent (africa).  A complete and total history.

History
* The Fall of Proprietary Software: (gnu).
                                How the world came to reject slavery.

Immunology
* Beating the flu: (flu).       Three simple steps to beating influenza.

Jekyllism
* Science Gone Mad (hyde).      A personal account of self-medication.


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Astronomy
* Mars: (mars).                 Postcards from the Red Planet.

Biology
* Alien Autopsy: (mars).        A biological account of an alien autopsy.

Chemistry
* Making Gold: (gold).          How to turn lead into gold.

Dentistry
* On the Cheap: (dentistry).    Do it yourself dentistry made easy.

Education
* Dog Training: (dogs).         Teaching old dogs new tricks.

Forestry
* The Last Tree: (forest).      Clear cutting practises in North America.

History
* The Fall of Proprietary Software: (gnu).
                                How the world came to reject slavery.

Immunology
* Beating the flu: (flu).       Three simple steps to beating influenza.

Jekyllism
* Science Gone Mad (hyde).      A personal account of self-medication.


code:
INFO-DIR-SECTION Geography
START-INFO-DIR-ENTRY
* The Dark Continent (africa).   A complete and total history.
END-INFO-DIR-ENTRY

File: gnu,  Node: Top,  Next: Top,  Up: (dir)

Gnu
***

The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal.  (Taken from wikepedia.)


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii43-XXXXXXXX`
cp ${testdir}/ii-0043-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} ${testdir}/ii-0043-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0043-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (ii-0044-input-info-file).
                                Wildebeest native to Africa.


code:
#!/bin/sh -x
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. ./defs || exit 1

outputdirfile=`mktemp ii44-XXXXXXXX`
cp ${testdir}/ii-0044-input-dir-file $outputdirfile
if [ "x$?" != "x0" ]; then
  exit 1
fi

${install_info} --remove ${testdir}/ii-0044-input-info-file $outputdirfile
retval=$?
if [ "x$retval" != "x0" ]; then
  exit $retval
fi

diff ${testdir}/ii-0044-expected-dir-file $outputdirfile
retval=$?

rm -f $outputdirfile
exit $retval


code:
This is the directory file `dir' a.k.a. `DIR', which contains the
  topmost node of the Info hierarchy.

File: dir,	Node: Top,	This is the top of the INFO tree.

This is the Info main menu (aka directory node).
A few useful Info commands:

  `q' quits;
  `?' lists all Info commands;
  `h' starts the Info tutorial;
  `mTexinfo RET' visits the Texinfo manual, etc.

* Menu:

Animals
* Aardvark: (aardvark).         Medium-sized African mammal.
* Baboon: (baboon).             A monkey from Africa.
* Chameleon: (chameleon).       A lizard from Africa.
* Deer: (deer).                 Ruminent antlered mammal.
* Emu: (emu).                   A flightless bird from Australia.
* Fisher: (fisher).             A marten from North America.
* Gnu: (ii-0045-input-info-file).
                                Wildebeest native to Africa.
* Wildebesst: (ii-0045-input-info-file).
                                Wildebeest native to Africa.