From d425a52348d2d4dd1fe87f75a5d5e74e4de19787 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 24 Aug 2005 20:15:50 +0000 Subject: switch back to post-config to help packagers --- lib/rbot/post-config.rb | 8 ++++++++ lib/rbot/post-install.rb | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 lib/rbot/post-config.rb delete mode 100644 lib/rbot/post-install.rb (limited to 'lib') 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" -} -- cgit v1.2.3