]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
switch back to post-config to help packagers
authorTom Gilbert <tom@linuxbrit.co.uk>
Wed, 24 Aug 2005 20:15:50 +0000 (20:15 +0000)
committerTom Gilbert <tom@linuxbrit.co.uk>
Wed, 24 Aug 2005 20:15:50 +0000 (20:15 +0000)
lib/rbot/post-config.rb [new file with mode: 0644]
lib/rbot/post-install.rb [deleted file]

diff --git a/lib/rbot/post-config.rb b/lib/rbot/post-config.rb
new file mode 100644 (file)
index 0000000..9413df5
--- /dev/null
@@ -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 (file)
index e26653b..0000000
+++ /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"
-}