Created
February 28, 2012 08:17
-
-
Save jpsilvashy/1930743 to your computer and use it in GitHub Desktop.
WEBrick bin link installer for Simple Server
This file contains 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
#!/bin/sh | |
# | |
# Install Simple Server by running this command: | |
# curl https://raw.github.com/gist/1930743/c5b9b6d6579701e2c376f84d5073d8367001bc9e/install.rb | sh | |
# | |
# Set up the environment. Respect $VERSION if it's set. | |
set -e | |
SS_ROOT="$HOME/Library/Application Support/Simple Server" | |
SS_BIN="$POW_ROOT/bin/simple_server" | |
[[ -z "$VERSION" ]] && VERSION=0.0.1 | |
echo "*** Installing Simple Server $VERSION..." | |
mkdir -p "$SS_ROOT" | |
mkdir -p "$SS_ROOT/bin" | |
cd "$SS_ROOT/bin" | |
curl -s https://raw.github.com/gist/1930803/c5b9b6d6579701e2c376f84d5073d8367001bc9e/simple_server.rb simple_server | |
ln -s "$SS_BIN" /usr/local/bin | |
# All done! | |
echo "*** Installed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment