~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to util/install-info-html

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!@BASH@
 
2
# $Id: install-info-html,v 1.3 2004/04/11 17:56:47 karl Exp $
2
3
 
3
4
name=install-info-html
4
5
version=1.0
108
109
#
109
110
# Input file name
110
111
#
111
 
if [ -z "$all" -a -z "$1" ]; then
 
112
if [ -z "$all" ] && [ -z "$1" ]; then
112
113
        help
113
114
        echo "$name: No HTML documents given"
114
115
        exit 2
115
116
fi
116
117
 
117
 
if [ -n "$all" -a -n "$1" ]; then
 
118
if [ -n "$all" ] && [ -n "$1" ]; then
118
119
        echo "$name: --all specified, ignoring DIRECTORY-DIRs"
119
120
fi
120
121
 
130
131
 
131
132
# head
132
133
cat >> $index_file <<EOF
133
 
<html> 
134
 
<title>Info documentation index</title>
 
134
<html>
 
135
<head><title>Info documentation index</title></head>
135
136
<body>
136
137
<h1>Info documentation index</h1>
137
138
This is the directory file \`index.html' a.k.a. \`DIR', which contains the
144
145
 
145
146
#list
146
147
for i in $document_dirs; do
147
 
        echo "<li> <a href=$i/$i.html>$i</a>"
 
148
        echo "<li> <a href=\"$i/$i.html\">$i</a></li>"
148
149
done >> $index_file
149
150
 
150
151
# foot