diff options
Diffstat (limited to 'lib/rbot/post-config.rb')
-rw-r--r-- | lib/rbot/post-config.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rbot/post-config.rb b/lib/rbot/post-config.rb new file mode 100644 index 00000000..9413df5e --- /dev/null +++ b/lib/rbot/post-config.rb @@ -0,0 +1,8 @@ +# write out our datadir so we can reference it at runtime +File.open("pkgconfig.rb", "w") {|f| + f.puts "module Irc" + f.puts " module PKGConfig" + f.puts " DATADIR = '#{config('datadir')}/rbot'" + f.puts " end" + f.puts "end" +} |