blob: f104fa621840a5eb13153a2b671891d3c4fc3729 (
plain) (
blame)
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
|
#!/bin/sh
PREMAKE_VERSION="5.0.0-beta2"
OS="linux"
echo "downloading premake $PREMAKE_VERSION"
wget -q https://github.com/premake/premake-core/releases/download/v${PREMAKE_VERSION}/premake-${PREMAKE_VERSION}-${OS}.tar.gz -O premake.tar.gz
echo "extracting premake"
tar -xzf premake.tar.gz
echo "installing premake"
sudo mv premake5 example.so libluasocket.so /usr/bin
sudo chmod +x /usr/bin/premake5
rm premake.tar.gz
premake5 gmake
make
sudo cp ./bin/Debug/lush/lush /usr/bin/lush
if ! grep -Fxq "/usr/bin/lush" /etc/shells; then
echo "/usr/bin/lush" | sudo tee -a /etc/shells >/dev/null
fi
chsh -s /usr/bin/lush
echo "====================="
echo "INSTALLATION FINISHED"
echo "====================="
|