1#!/bin/sh 2 3# 4# Install dependencies that aren't available as Ubuntu packages. 5# 6# Everything goes into $HOME/local. 7# 8# Scripts should add 9# - $HOME/local/bin to PATH 10# - $HOME/local/lib to LD_LIBRARY_PATH 11# 12 13cd 14mkdir -p local 15 16# Install swift 17SWIFT_BRANCH=swift-3.0.2-release 18SWIFT_VERSION=swift-3.0.2-RELEASE 19SWIFT_PLATFORM=ubuntu14.04 20SWIFT_URL=https://swift.org/builds/$SWIFT_BRANCH/$(echo "$SWIFT_PLATFORM" | tr -d .)/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz 21 22echo $SWIFT_URL 23 24curl -fSsL $SWIFT_URL -o swift.tar.gz 25tar -xzf swift.tar.gz --strip-components=2 --directory=local 26 27# Install protoc 28PROTOC_URL=https://github.com/google/protobuf/releases/download/v3.2.0rc2/protoc-3.2.0rc2-linux-x86_64.zip 29 30echo $PROTOC_URL 31 32curl -fSsL $PROTOC_URL -o protoc.zip 33unzip protoc.zip -d local 34 35# Verify installation 36find local 37