1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Id: mkinfodir,v 1.3 2005-01-06 23:28:28 niro Exp $ |
# $Id: mkinfodir,v 1.4 2005-01-10 01:58:55 niro Exp $ |
3 |
# Generate the top-level Info node, given a directory of Info files |
# Generate the top-level Info node, given a directory of Info files |
4 |
# and (optionally) a skeleton file. The output will be suitable for a |
# and (optionally) a skeleton file. The output will be suitable for a |
5 |
# top-level dir file. The skeleton file contains info topic names in the |
# top-level dir file. The skeleton file contains info topic names in the |
21 |
# modified 7 April 1995 by Joe Harrington <jh@tecate.gsfc.nasa.gov> to |
# modified 7 April 1995 by Joe Harrington <jh@tecate.gsfc.nasa.gov> to |
22 |
# take special flags |
# take special flags |
23 |
|
|
24 |
# version: 0.3.6-r10 |
# version: 0.3.6-r11 |
25 |
|
|
26 |
INFODIR=$1 |
INFODIR=$1 |
27 |
if [ $# = 2 ] ; then |
if [ $# = 2 ] ; then |
53 |
echo "by `whoami`@`hostname` for `(cd ${INFODIR}; pwd)`" |
echo "by `whoami`@`hostname` for `(cd ${INFODIR}; pwd)`" |
54 |
|
|
55 |
cat << moobler |
cat << moobler |
56 |
\$Id: mkinfodir,v 1.3 2005-01-06 23:28:28 niro Exp $ |
\$Id: mkinfodir,v 1.4 2005-01-10 01:58:55 niro Exp $ |
57 |
This is the file .../info/dir, which contains the topmost node of the |
This is the file .../info/dir, which contains the topmost node of the |
58 |
Info hierarchy. The first time you invoke Info you start off |
Info hierarchy. The first time you invoke Info you start off |
59 |
looking at that node, which is (dir)Top. |
looking at that node, which is (dir)Top. |