1998-11-03 08:48:35 +00:00
|
|
|
--- makecron.orig Mon Jan 26 00:27:25 1998
|
|
|
|
+++ makecron Tue Nov 3 11:43:57 1998
|
1998-11-02 20:04:30 +00:00
|
|
|
@@ -37,6 +37,7 @@
|
|
|
|
# Get command-line options
|
|
|
|
$indexdir = $ARGV[0];
|
|
|
|
$usemaxmem = $ARGV[1];
|
|
|
|
+$locale = $ARGV[2];
|
|
|
|
|
|
|
|
# lock file
|
|
|
|
$LOCKFILE = "indexing-in-progress";
|
1998-11-03 08:48:35 +00:00
|
|
|
@@ -105,6 +106,10 @@
|
1998-11-02 20:04:30 +00:00
|
|
|
|
|
|
|
print OUT "# CRONFILE FOR ARCHIVE IN DIRECTORY $indexdir\n\n";
|
1998-11-03 08:48:35 +00:00
|
|
|
|
1998-11-02 20:04:30 +00:00
|
|
|
+if (defined($locale) && $locale ne '') {
|
1998-11-03 18:44:04 +00:00
|
|
|
+ print OUT "LC_CTYPE=$locale; export LC_CTYPE\n";
|
1998-11-02 20:04:30 +00:00
|
|
|
+}
|
1998-11-03 08:48:35 +00:00
|
|
|
+
|
1998-11-02 20:04:30 +00:00
|
|
|
print OUT ('quiet=""',"\n");
|
|
|
|
print OUT ('if [ "$1" = "-q" ] ; then',"\n");
|
1998-11-03 08:48:35 +00:00
|
|
|
print OUT (' quiet="-q"',"\n");
|
|
|
|
@@ -121,7 +126,7 @@
|
|
|
|
|
|
|
|
print OUT "# put the search box in the html files -- will check config file\n";
|
|
|
|
print OUT "# and will not do anything if not wanted\n";
|
|
|
|
-print OUT "$ADDSEARCH $indexdir\n\n";
|
|
|
|
+print OUT "$ADDSEARCH $indexdir \$quiet\n\n";
|
|
|
|
|
|
|
|
print OUT "# Do the indexing\n";
|
|
|
|
$command = "$CAT $indexdir/$TOINDEX | ".
|