aboutsummaryrefslogtreecommitdiff
path: root/contrib/texinfo/util/gen-dir-node
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>1999-01-14 19:35:19 +0000
committerMark Murray <markm@FreeBSD.org>1999-01-14 19:35:19 +0000
commitd8b5c7ed06fe94e01ce1e61786c3e072de0c3e89 (patch)
tree570e5cf5730d6009252842b5ff3e1405c775afa0 /contrib/texinfo/util/gen-dir-node
parent253c2b00b74a914f105a971446b873fc1f38919a (diff)
Upgrade texinfo to the latest-and-greatest.
This has big improvements to the .info file utility support and much recent OSS requires its features.
Notes
Notes: svn path=/vendor/texinfo/dist/; revision=42660
Diffstat (limited to 'contrib/texinfo/util/gen-dir-node')
-rwxr-xr-xcontrib/texinfo/util/gen-dir-node11
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/texinfo/util/gen-dir-node b/contrib/texinfo/util/gen-dir-node
index 8f13088f920d..c7ef670c5393 100755
--- a/contrib/texinfo/util/gen-dir-node
+++ b/contrib/texinfo/util/gen-dir-node
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: gen-dir-node,v 1.2 1996/10/03 18:49:48 karl Exp $
+# $Id: gen-dir-node,v 1.1 1997/05/22 22:02:43 karl 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
@@ -164,9 +164,14 @@ else
fi
for file in ${infofiles}; do
+ case $file in
+ *.gz) zcat=zcat; file=`echo $file|sed 's/\.gz$//'`; gz=.gz;;
+ *) zcat=cat; gz=;;
+ esac
infoname=`echo $file | sed 's/\.info$//'`
- entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
- -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/${file}`
+ entry=`$zcat ${INFODIR}/${file}$gz \
+ |sed -e '1,/START-INFO-DIR-ENTRY/d' \
+ -e '/END-INFO-DIR-ENTRY/,$d'`
if [ ! -z "${entry}" ] ; then
echo "${entry}"