From d911e7e1b773379f903a2c3dcc10b4e58882f2ce Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 29 Mar 2016 01:19:38 +1000 Subject: Add Prosody build script. --- .gitignore | 1 + build.lua | 5 +++++ src/others/build_prosody.lua | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100755 src/others/build_prosody.lua 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/ /src/others/lemon/lemon /src/others/netsurf/ /src/others/polipo/ +/src/others/prosody/ valgrind_*.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) runCommand(nil, dir, 'git clone git://' .. repo .. '/' .. name) end +cloneHG = function (name, dir, repo, branch) + runCommand(nil, dir, 'rm -rf ' .. name) + runCommand(nil, dir, 'hg clone http://' .. repo .. ' ' .. name) +end + compileFiles = function (name, dir, files, extras) local objects = '' 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 @@ +#!/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') -- cgit v1.1