diff options
author | David Walter Seikel | 2016-03-29 01:19:38 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-29 01:19:38 +1000 |
commit | d911e7e1b773379f903a2c3dcc10b4e58882f2ce (patch) | |
tree | 4f8102485ec8b86d58b6b242ddb57a70899c7d69 /src/others | |
parent | Lost image for provious commit. (diff) | |
download | SledjHamr-d911e7e1b773379f903a2c3dcc10b4e58882f2ce.zip SledjHamr-d911e7e1b773379f903a2c3dcc10b4e58882f2ce.tar.gz SledjHamr-d911e7e1b773379f903a2c3dcc10b4e58882f2ce.tar.bz2 SledjHamr-d911e7e1b773379f903a2c3dcc10b4e58882f2ce.tar.xz |
Add Prosody build script.
Diffstat (limited to 'src/others')
-rwxr-xr-x | src/others/build_prosody.lua | 17 |
1 files changed, 17 insertions, 0 deletions
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 | |||
3 | local dir = ... | ||
4 | |||
5 | if '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 | ||
14 | end | ||
15 | |||
16 | cloneHG('prosody', '.', 'hg.prosody.im/trunk', '') | ||
17 | runCommand(nil, 'prosody', './configure --ostype="debian" && make') | ||