From: Tom Gilbert Date: Wed, 24 Aug 2005 20:15:50 +0000 (+0000) Subject: switch back to post-config to help packagers X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d425a52348d2d4dd1fe87f75a5d5e74e4de19787;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git switch back to post-config to help packagers --- 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" +} diff --git a/lib/rbot/post-install.rb b/lib/rbot/post-install.rb deleted file mode 100644 index e26653ba..00000000 --- a/lib/rbot/post-install.rb +++ /dev/null @@ -1,8 +0,0 @@ -# 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" -}