$firsttime = 1;
### CHANGE TO STATIC.
-$bot_version = "blootbot 1.0.3 (20000930) -- $^O";
+$bot_version = "blootbot cvs (20001212) -- $^O";
$noreply = "NOREPLY";
##########
&status("Setup: ". &countKeys("factoids") ." factoids.");
+ $param{tempDir} =~ s#\~/#$ENV{HOME}#;
+
&status("Initial memory usage: $memusage kB");
}
exit 1;
}
+ if ($param{tempDir} =~ s#\~/#$ENV{HOME}#) {
+ &status("Fixing up tempDir.");
+ }
+
+ if ($param{tempDir} =~ /~/) {
+ &ERROR("parameter tempDir still contains tilde.");
+ exit 1;
+ }
+
if (! -d $param{tempDir}) {
&status("making $param{tempDir}...");
system("mkdir $param{tempDir}");