Software /
code /
prosody
Comparison
tools/ejabberd2prosody.lua @ 1726:85518cb866dd
ejabberd2prosody: More intelligent searching for erlparse library
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 Aug 2009 16:30:03 +0100 |
parent | 1571:063d7be32fdd |
child | 1782:dd819e5bb0b8 |
comparison
equal
deleted
inserted
replaced
1724:7682a34c13d0 | 1726:85518cb866dd |
---|---|
7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
8 -- | 8 -- |
9 | 9 |
10 | 10 |
11 | 11 |
12 package.path = package.path ..";../?.lua"; | |
13 | |
14 if arg[0]:match("^./") then | |
15 package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua"); | |
16 end | |
17 | |
12 require "erlparse"; | 18 require "erlparse"; |
13 | 19 |
14 package.path = package.path ..";../?.lua"; | |
15 local serialize = require "util.serialization".serialize; | 20 local serialize = require "util.serialization".serialize; |
16 local st = require "util.stanza"; | 21 local st = require "util.stanza"; |
17 package.loaded["util.logger"] = {init = function() return function() end; end} | 22 package.loaded["util.logger"] = {init = function() return function() end; end} |
18 local dm = require "util.datamanager" | 23 local dm = require "util.datamanager" |
19 dm.set_data_path("data"); | 24 dm.set_data_path("data"); |