summaryrefslogtreecommitdiff
path: root/lib/rbot/post-config.rb
blob: 1dc29103e2f6a333948a77c740951f2cdb36c985 (plain)
1
2
3
4
5
6
7
8
9
# 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 "    COREDIR = '#{config('rbdir')}/rbot/core'"
  f.puts "  end"
  f.puts "end"
}