-
Notifications
You must be signed in to change notification settings - Fork 37
/
clone.sh
executable file
·26 lines (21 loc) · 1.09 KB
/
clone.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
. "$(dirname $0)/utils.sh"
# Distributions derived by Stretch need an older clang, use the default for the rest
if [ $VERSION = "stretch" ] || [ $VERSION = "16.04" ]; then
CLANG_VERSION=-3.8
fi
# Basic dependencies
echo "✅ Installing dependencies..."
sudo apt-get -q install -y git cmake ninja-build clang python python3 uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libncurses5-dev pkg-config libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync python-six python3-dev python3-pip python3-tk python3-lxml python3-six
# Some OS or specific versions could have additional requirements, if they do
# a script will be present in distro-scripts and we'll run it right after the more generic configuration
for VARIANT in $OS $VERSION $OS$VERSION
do
if [ -f ./distro-scripts/$VARIANT.sh ]; then
echo "✅ Running configuration script for $VARIANT..."
./distro-scripts/$VARIANT.sh
fi
done
# Clone Swift and all the related projects
git clone https://github.com/apple/swift
./swift/utils/update-checkout --clone