From dd0b318cfd3df017b1ec4e44afc2f4e412fd2033 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 3 Aug 2005 20:07:14 +0000 Subject: Wed Aug 03 15:25:07 BST 2005 Tom Gilbert * 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. --- lib/rbot/post-install.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/rbot/post-install.rb (limited to 'lib/rbot/post-install.rb') 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" +} -- cgit v1.2.3