summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2003-09-09 15:40:26 +0000
committerDavid Krause <david@cvs.openbsd.org>2003-09-09 15:40:26 +0000
commit22a750b5ca7a15235be3e18116336ee87a83fa47 (patch)
tree1745a7b8976977e06b13ce2dbea34d7fbcee9049
parent281e70efa2e44c76043805a1a63d593d558722fc (diff)
pass the -a flag to grep so that it doesn't treat some info files as binary
ok deraadt@
-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