aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xbuild.lua5
-rwxr-xr-xsrc/others/build_prosody.lua17
3 files changed, 23 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 1f90be4..e52ae97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -336,4 +336,5 @@ media/Test%20sim/test/bulk_scripts_dump/
336/src/others/lemon/lemon 336/src/others/lemon/lemon
337/src/others/netsurf/ 337/src/others/netsurf/
338/src/others/polipo/ 338/src/others/polipo/
339/src/others/prosody/
339valgrind_*.log 340valgrind_*.log
diff --git a/build.lua b/build.lua
index 07017dc..3c29f2a 100755
--- a/build.lua
+++ b/build.lua
@@ -31,6 +31,11 @@ cloneGit = function (name, dir, repo, branch)
31 runCommand(nil, dir, 'git clone git://' .. repo .. '/' .. name) 31 runCommand(nil, dir, 'git clone git://' .. repo .. '/' .. name)
32end 32end
33 33
34cloneHG = function (name, dir, repo, branch)
35 runCommand(nil, dir, 'rm -rf ' .. name)
36 runCommand(nil, dir, 'hg clone http://' .. repo .. ' ' .. name)
37end
38
34compileFiles = function (name, dir, files, extras) 39compileFiles = function (name, dir, files, extras)
35 local objects = '' 40 local objects = ''
36 print('\n' .. name) 41 print('\n' .. name)
diff --git a/src/others/build_prosody.lua b/src/others/build_prosody.lua
new file mode 100755
index 0000000..68f63dc
--- /dev/null
+++ b/src/others/build_prosody.lua
@@ -0,0 +1,17 @@
1#!/usr/bin/env luajit
2
3local dir = ...
4
5if 'nil' == type(dir) then
6 local build, err = loadfile('../../build.lua')
7 if build then
8 setfenv(build, getfenv(2))
9 build(2)
10 else
11 print("ERROR - " .. err)
12 end
13 dir = workingDir
14end
15
16cloneHG('prosody', '.', 'hg.prosody.im/trunk', '')
17runCommand(nil, 'prosody', './configure --ostype="debian" && make')