Skip to content

Instantly share code, notes, and snippets.

@acoomans
Created June 29, 2018 22:42
Show Gist options
  • Save acoomans/cd03197b53626ba82d68145d40b700b2 to your computer and use it in GitHub Desktop.
Save acoomans/cd03197b53626ba82d68145d40b700b2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if ! [ -x "$(command -v cmake)" ]; then
brew install cmake || \
echo 'cmake not found'
fi
if ! [ -x "$(command -v ninja)" ]; then
brew install ninja || \
echo 'ninja not found'
fi
mkdir swift
cd swift
git clone --depth 1 [email protected]:apple/swift.git
./swift/utils/update-checkout --clone --skip-history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment