Skip to content

Instantly share code, notes, and snippets.

@romainmenke
Created June 18, 2016 13:22
Show Gist options
  • Save romainmenke/506a4b0858c22f10e2598517b978f8c7 to your computer and use it in GitHub Desktop.
Save romainmenke/506a4b0858c22f10e2598517b978f8c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# setup directories
mkdir swift-src
cd swift-src
# get swift
git clone https://github.com/apple/swift.git
# get utils
cd swift
./utils/update-checkout --clone
# get libdispatch
rm -rf swift-corelibs-libdispatch
git clone -b experimental/foundation http://github.com/apple/swift-corelibs-libdispatch
cd swift-corelibs-libdispatch
git submodule init
git submodule update
cd ..
# get foundation
rm -rf swift-corelibs-foundation
git clone -b nsurlsession http://github.com/seabaylea/swift-corelibs-foundation
cd ..
# get llvm
cd llvm
git pull origin stable
cd ..
# replace build-presets.ini
cd ..
rm swift-src/swift/utils/build-presets.ini
cp build-presets.ini swift-src/swift/utils/
#result
#├── Dockerfile
#├── build-presets.ini
#├── setup-swift.sh
#├── swift-src
#│ ├── clang
#│ ├── cmark
#│ ├── compiler-rt
#│ ├── llbuild
#│ ├── lldb
#│ ├── llvm
#│ ├── swift
#│ ├── swift-corelibs-foundation
#│ ├── swift-corelibs-libdispatch
#│ ├── swift-corelibs-xctest
#│ ├── swift-integration-tests
#│ ├── swiftpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment