A little handy script that launches the rbot daemon from this directory (no need...
[rbot] / launch_here.rb
1 #!/usr/bin/ruby\r
2 #\r
3 # Load rbot from this directory. (No need to install it with setup.rb)\r
4 #\r
5 \r
6 BASEDIR = Dir.pwd\r
7 \r
8 #puts "Load path: #{$LOAD_PATH.inspect}"\r
9
10 def add_to_path(dir)
11   $LOAD_PATH.unshift dir
12 end
13 \r
14 module Irc
15   module PKGConfig
16     DATADIR = File.join BASEDIR, 'data/rbot'
17     COREDIR = File.join BASEDIR, 'lib/rbot/core'
18   end
19 end\r
20 \r
21 add_to_path( File.join BASEDIR, 'lib' )\r
22 \r
23 p ARGV\r
24 ARGV << "--debug"\r
25 p ARGV\r
26
27 load( File.join BASEDIR, 'bin/rbot' )