diff options
| author | 2024-09-01 13:17:10 -0400 | |
|---|---|---|
| committer | 2024-09-01 13:17:10 -0400 | |
| commit | f6d7b19d2df68d2f549a76cf182c06d38970884f (patch) | |
| tree | e959b2bd1086a99e7d10124e59d52473f8723909 /install.sh | |
initial commit
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..f104fa6 --- /dev/null +++ b/install.sh @@ -0,0 +1,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 "=====================" |
