summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/texinfo/util/gen-dir-node7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/texinfo/util/gen-dir-node b/gnu/usr.bin/texinfo/util/gen-dir-node
index 457ccc9cf44..be0f854fb64 100644
--- a/gnu/usr.bin/texinfo/util/gen-dir-node
+++ b/gnu/usr.bin/texinfo/util/gen-dir-node
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: gen-dir-node,v 1.3 2000/02/09 02:18:42 espie Exp $
+# $Id: gen-dir-node,v 1.4 2003/09/09 15:40:25 david Exp $
# Generate the top-level Info node, given a directory of Info files
# and (optionally) a skeleton file. The output will be suitable for a
# top-level dir file. The skeleton file contains info topic names in the
@@ -51,7 +51,7 @@ echo "This version was generated on `date`"
echo "by `whoami`@`hostname` for `(cd ${INFODIR}; pwd)`"
cat << moobler
-\$Id: gen-dir-node,v 1.3 2000/02/09 02:18:42 espie Exp $
+\$Id: gen-dir-node,v 1.4 2003/09/09 15:40:25 david Exp $
This is the file .../info/dir, which contains the topmost node of the
Info hierarchy. The first time you invoke Info you start off
looking at that node, which is (dir)Top.
@@ -167,7 +167,8 @@ fi
# Sort remaining files by INFO-DIR-SECTION.
prevsect=
-filesectdata=`(cd ${INFODIR}; fgrep INFO-DIR-SECTION /dev/null ${infofiles} | \
+filesectdata=`(cd ${INFODIR}; \
+ fgrep -a INFO-DIR-SECTION /dev/null ${infofiles} | \
fgrep -v 'INFO-DIR-SECTION Miscellaneous' | \
sort -t: -k2 -k1 | tr ' ' '_')`
for sectdata in ${filesectdata}; do