Debian Codegraph @

htdoc/rundig.html

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <html>
3 <head>
4 <title>
5 ht://Dig: rundig
6 </title>
7 </head>
8 <body bgcolor="#eef7ff">
9 <h1>
10 rundig
11 </h1>
12 <p>
13 ht://Dig Copyright &copy; 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br>
14 Please see the file <a href="COPYING">COPYING</a> for
15 license information.
16 </p>
17 <hr size="4" noshade>
18 <dl>
19 <dd>
20 <h2>
21 Synopsis
22 </h2>
23 </dd>
24 <dd>
25 rundig [<em>options</em>]
26 </dd>
27 </dl>
28 <dl>
29 <dd>
30 <h2>
31 Description
32 </h2>
33 </dd>
34 <dd>
35 Rundig is a shell script that builds the databases necessary
36 for a typical ht://Dig setup. It runs <a href="htdig.html">
37 htdig</a> first to build the initial database, then it runs
38 <a href="htpurge.html">htpurge</a> to clean up the document
39 and word databases that were created by htdig.
40 It then runs <a href="htnotify.html">htnotify</a>, and finally
41 runs <a href="htfuzzy.html">htfuzzy</a> if necessary, to build
42 the endings and synonyms databases if they're missing or
43 outdated. Rundig uses the "-i" option to htdig, so it always
44 reindexes your web site from scratch when you run it.
45 </dd>
46 </dl>
47 <dl>
48 <dd>
49 <h2>
50 Options
51 </h2>
52 </dd>
53 <dd>
54 <dl compact>
55 <dt>
56 -a
57 </dt>
58 <dd>
59 Use alternate work files. Tells htdig and htpurge to
60 append <em>.work</em> to database files, causing a
61 second copy of the database to be built. This allows
62 the original files to be used by htsearch during the
63 indexing run. After htdig and htpurge are done building
64 the .work database files, rundig will move them into
65 place, replacing the original files.
66 <br>This option only works for building a new second
67 copy of the database from scratch, and not for updating
68 an existing database. To do that would require further
69 customization of the rundig script. It's not sufficient
70 to simply remove the "-i" option from htdig in the
71 script. See the <em>Customization</em> section below.
72 </dd>
73 <dt>
74 -c <em>configfile</em>
75 </dt>
76 <dd>
77 Use the specified <i>configfile</i> file instead of the
78 default.
79 </dd>
80 <dt>
81 -s
82 </dt>
83 <dd>
84 Print statistics about the dig after completion.
85 </dd>
86 <dt>
87 -v
88 </dt>
89 <dd>
90 Verbose mode. This increases the verbosity of the
91 programs. Using more than 2 is probably only useful for
92 debugging purposes. The default verbose mode (using
93 only one -v) gives a nice progress report while
94 digging and merging. This progress report can be a bit
95 cryptic, but is explained in the <a href="htdig.html">
96 htdig</a> documentation.
97 </dd>
98 </dl>
99 </dd>
100 </dl>
101 <dl>
102 <dd>
103 <h2>
104 Files
105 </h2>
106 </dd>
107 <dd>
108 <dl>
109 <dt>
110 <a href="attrs.html#bin_dir">BIN_DIR</a>/htdig, htpurge, htnotify, htfuzzy
111 </dt>
112 <dd>
113 The executable programs called by rundig.
114 </dd>
115 <dt>
116 <a href="attrs.html#config_dir">CONFIG_DIR</a>/htdig.conf
117 </dt>
118 <dd>
119 The default configuration file.
120 </dd>
121 <dt>
122 <a href="attrs.html#common_dir">COMMON_DIR</a>/english.0, english.aff, synonyms
123 </dt>
124 <dd>
125 The default fuzzy match dictionary (input) files.
126 </dd>
127 </dl>
128 </dd>
129 </dl>
130 <dl>
131 <dd>
132 <h2>
133 See Also
134 </h2>
135 </dd>
136 <dd>
137 <a href="htdig.html">htdig</a>,
138 <a href="htpurge.html">htpurge</a>,
139 <a href="htnotify.html">htnotify</a>,
140 <a href="htfuzzy.html">htfuzzy</a>,
141 <a href="htsearch.html" target="_top">htsearch</a>, and
142 <a href="attrs.html">Configuration file format</a>.
143 </dd>
144 </dl>
145 <dl>
146 <dd>
147 <h2>
148 Customization
149 </h2>
150 </dd>
151 <dd>
152 Because rundig is a shell script, it's easy to customize
153 it as needed. It's also necessary to customize it if you
154 change the settings of your
155 <a href="attrs.html#database_dir">database_dir</a> or
156 <a href="attrs.html#common_dir">common_dir</a> attributes
157 (you'll need to make the corresponding changes to the DBDIR
158 and COMMONDIR variables in the script), if you decide to
159 use other fuzzy algorithms that need their own databases
160 rebuilt, or if you change the names of the endings or
161 synonyms databases or source files. Before customizing the
162 script, be sure to familiarize yourself with the individual
163 programs in the package and how they interact.
164 <br>
165 <br>A common mistake is to assume that you can simply take
166 the "-i" option off the htdig command line in rundig to make
167 rundig update rather than reindexing from scratch. This will
168 work as long as you don't use the "-a" option to rundig.
169 The file manipulations that rundig -a does assume that you've
170 created a new database from scratch, and all files are moved
171 from .work files to the original file locations. However,
172 nothing is done before running htdig to move or copy the
173 db.wordlist and db.docdb to .work files before running htdig.
174 The end result is that a rundig -a will still reindex
175 your site from scratch. When it comes to more drastic changes
176 such as this, many users chose to write their own custom
177 script, rather than modifying rundig. For example, see the
178 <a href="http://www.htdig.org/files/contrib/scripts/rundig.sh">
179 rundig.sh</a> script in our contributed files.
180 </dd>
181 </dl>
182 <hr size="4" noshade>
183
184 Last modified: $Date: 2004/06/12 13:39:13 $
185 <br>
186 <a href="http://sourceforge.net/">
187 SourceForge</a>
188
189 </body>
190 </html>