summaryrefslogtreecommitdiff
path: root/lib/rbot/post-install.rb
blob: e26653ba03025832d84cf1ddaf3feca73912066a (plain)
1
2
3
4
5
6
7
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"
}