blob: 7bff7c53acb8fb5939cd70a76800a328ee3837e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- makecron.orig Mon Jan 26 00:27:25 1998
+++ makecron Tue Nov 3 11:43:57 1998
@@ -37,6 +37,7 @@
# Get command-line options
$indexdir = $ARGV[0];
$usemaxmem = $ARGV[1];
+$locale = $ARGV[2];
# lock file
$LOCKFILE = "indexing-in-progress";
@@ -105,6 +106,10 @@
print OUT "# CRONFILE FOR ARCHIVE IN DIRECTORY $indexdir\n\n";
+if (defined($locale) && $locale ne '') {
+ print OUT "LANG=$locale; export LANG\n";
+}
+
print OUT ('quiet=""',"\n");
print OUT ('if [ "$1" = "-q" ] ; then',"\n");
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 | ".
|