summaryrefslogtreecommitdiff
path: root/lib/rbot/post-install.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-03 20:07:14 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-03 20:07:14 +0000
commitdd0b318cfd3df017b1ec4e44afc2f4e412fd2033 (patch)
treee364fc26af86c1105124385d8da2768262e97d23 /lib/rbot/post-install.rb
parentfba4b7bba7a5d15f2b98f4d9f1ece390881c5ae9 (diff)
Wed Aug 03 15:25:07 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* Added french language file (TODO most of the plugins just talk english) * The way the Enum configs were set up, it wasn't possible to add language files to rbot at runtime (the directory was only scanned at startup). Now you can set a values Proc, which is called to return a list of allowed values whenever it's queried. * Added Config module for determining where we were installed. Unfortunately rubygems is a total whore in this regard, and I hope the current hackery I have to do to support it becomes redundant in the future.
Diffstat (limited to 'lib/rbot/post-install.rb')
-rw-r--r--lib/rbot/post-install.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rbot/post-install.rb b/lib/rbot/post-install.rb
new file mode 100644
index 00000000..e26653ba
--- /dev/null
+++ b/lib/rbot/post-install.rb
@@ -0,0 +1,8 @@
+# write out our datadir so we can reference it at runtime
+File.open("#{config('rbdir')}/rbot/pkgconfig.rb", "w") {|f|
+ f.puts "module Irc"
+ f.puts " module PKGConfig"
+ f.puts " DATADIR = '#{config('datadir')}/rbot'"
+ f.puts " end"
+ f.puts "end"
+}