travis-racket/install-racket.sh
2014-01-28 15:07:46 -05:00

25 lines
659 B
Bash

set -e
if [ "$RACKET_VERSION" = "HEAD" ]; then
URL="http://www.cs.utah.edu/plt/snapshots/current/installers/racket-current-x86_64-linux-precise.sh"
elif [ "$RACKET_VERSION" = "5.92" ]; then
URL="http://download.racket-lang.org/installers/5.92/racket-5.92-x86_64-linux-ubuntu-quantal.sh"
else
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket/racket-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
fi
INSTALL="./racket-${RACKET_VERSION}.sh"
echo "Downloading $URL to $INSTALL:"
curl -o $INSTALL $URL
echo "Running $INSTALL to install Racket:"
chmod u+rx "$INSTALL"
sudo "$INSTALL" <<EOF
no
/usr/racket
EOF
exit 0