-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
executable file
·46 lines (33 loc) · 1.04 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /usr/bin/env bash
set -e
BASE_DIR=`pwd`
# Download and install Kepler/Lua into a sandbox
mkdir -p sandbox/src
pushd sandbox/src
curl http://sputnik.freewisdom.org/files/sputnik-9.03.16-kaio.tar.gz -O
tar zxf sputnik-9.03.16-kaio.tar.gz
pushd sputnik-9.03.16-kaio
bash install.sh "${BASE_DIR}/sandbox"
popd
popd
# Download and install sputnik mainline as a submodule
git submodule init
git submodule update
pushd sputnik.git
git checkout master
popd
# Link the rocks in sputnik mainline to our current installation
bash sputnik.git/scripts/link_rock.sh -i "${BASE_DIR}/sandbox" -g sputnik.git
# Link the sub-rocks for sputnik to our current installation
bash sputnik.git/scripts/link_rock.sh -i "${BASE_DIR}/sandbox" -g sputnik-rocks
# Link the recipe rock into the Luarocks installation
mkdir sandbox/rocks/recipes
ln -s "${BASE_DIR}/recipes" sandbox/rocks/recipes/cvs-1
sandbox/bin/luarocks-admin make-manifest
# Patch sputnik.ws
patch sandbox/sputnik.ws << ENDPATCH
4c4,4
< BASE_URL = '/sputnik.ws',
---
> BASE_URL = '/',
ENDPATCH