]> git.donarmstrong.com Git - infobot.git/commitdiff
- ok... is there a way, in cvs, to commit everything in one go?
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 4 Oct 2001 14:17:48 +0000 (14:17 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 4 Oct 2001 14:17:48 +0000 (14:17 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@518 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot

index 71efd335e7cef348c67882db602734c83b63c7be..02ea59b528a5247a23385d019a426d9962ec04dc 100755 (executable)
--- a/blootbot
+++ b/blootbot
@@ -4,17 +4,28 @@
 # blootbot -- copyright david sobon (c) 1999-infinity
 
 use strict;
-use vars qw($bot_base_dir $bot_src_dir $bot_misc_dir
-           $bot_pid $memusage %param
+use vars qw($bot_base_dir $bot_src_dir $bot_misc_dir $bot_state_dir
+           $bot_data_dir $bot_config_dir $bot_log_dir $bot_run_dir 
+           $bot_pid $memusage %param $fhs
 );
 
 BEGIN {
-    # set this to the absolute path if you need it; especially
-    # if . is not in your path
-
-    $bot_base_dir      = '.';
+    $fhs = 0;
+
+    if ($fhs) {        # FHS
+       $bot_base_dir   = $bot_state_dir;
+       $bot_config_dir = '.';
+    } else {   # non-FHS
+       $bot_base_dir   = '.';
+       $bot_config_dir = 'files/';
+       $bot_data_dir   = 'files/';
+       $bot_state_dir  = 'files/';
+       $bot_run_dir    = '.';
+    }
+    # common.
     $bot_src_dir       = "$bot_base_dir/src";
     $bot_misc_dir      = "$bot_base_dir/files";
+
     $bot_pid           = $$;
 
     require "$bot_src_dir/logger.pl";