Last active
October 3, 2015 04:48
-
-
Save drahosp/2394281 to your computer and use it in GitHub Desktop.
Quick LuaDist installation script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Obtain needed dependencies | |
cmake --version >/dev/null 2>&1 || { echo >&2 "CMake is required, please install CMake (www.cmake.org). On Ubuntu run: sudo apt-get install cmake build-essential. Aborting."; exit 1; } | |
git --version >/dev/null 2>&1 || { echo >&2 "Git is required, please install Git. On Ubuntu run: sudo apt-get install git. Aborting."; exit 1; } | |
# Clone the repo | |
git clone --recursive git://github.com/LuaDist/bootstrap.git _bootstrap | |
# Make sure LUA_CPATH and LUA_PATH are not set | |
unset LUA_CPATH | |
unset LUA_PATH | |
# Build LuaDist tool | |
cd _bootstrap && ./bootstrap && mv _install ../LuaDist && cd .. && rm -rf _bootstrap && echo "SUCCESS: You can find Lua and LuaDist in $PWD/LuaDist/bin/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment