aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/build_prosody.lua
blob: 68f63dc10907b1e1a255b85999f821423826f51c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env luajit

local dir = ...

if 'nil' == type(dir) then
  local build, err = loadfile('../../build.lua')
  if build then
    setfenv(build, getfenv(2))
    build(2)
  else
    print("ERROR - " .. err)
  end
  dir = workingDir
end

cloneHG('prosody', '.', 'hg.prosody.im/trunk', '')
runCommand(nil, 'prosody', './configure --ostype="debian" && make')