Comparison

tools/ejabberd2prosody.lua @ 2943:9236a7856688

tools/ejabberd2prosody: Create prosody singleton so datamanager can detect the platform (set no platform to use lfs, pposix isn't necessary here)
author Matthew Wild <mwild1@gmail.com>
date Thu, 25 Mar 2010 18:52:34 +0000
parent 2923:b7049746bd29
child 4360:a993a4a2ea0a
comparison
equal deleted inserted replaced
2941:a2b01936f8f9 2943:9236a7856688
14 if arg[0]:match("^./") then 14 if arg[0]:match("^./") then
15 package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua"); 15 package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua");
16 end 16 end
17 17
18 require "erlparse"; 18 require "erlparse";
19
20 prosody = {};
19 21
20 local serialize = require "util.serialization".serialize; 22 local serialize = require "util.serialization".serialize;
21 local st = require "util.stanza"; 23 local st = require "util.stanza";
22 package.loaded["util.logger"] = {init = function() return function() end; end} 24 package.loaded["util.logger"] = {init = function() return function() end; end}
23 local dm = require "util.datamanager" 25 local dm = require "util.datamanager"