Skip to content

Instantly share code, notes, and snippets.


Daniel Dunbar ddunbar

View GitHub Profile
ddunbar / update-swift-dev
Created Jun 2, 2016
This is the script I currently use on OS X to get a working "swift-dev.xctoolchain" out of a built Swift. It isn't designed to work for anyone but me, but it should be easy to adapt. I always run this after every build, and then use `TOOLCHAINS=swift-dev swift build` (etc) to use the development compiler.
View update-swift-dev
set -e
if [ -z "${CONFIGURATION}" ]; then
# Create the development toolchain.
rm -rf ~/public/swift-project/build/Ninja-ReleaseAssert/swift-dev.xctoolchain
View OS X Say Status
$ cat ~/bin/status
if [ $# -lt 2 ]; then
echo "Usage: $(basename $0) <exit-code> <name ...>"
echo "This script is intended to be used along with a shell alias"
echo "such as:"
echo " alias status='status $?'"
echo "which will automatically add the last exit code."
You can’t perform that action at this time.