diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-03-09 21:57:38 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-03-09 21:57:38 -0500 |
| commit | bd151cc4d229df466df4a9fcb450f34e43570c99 (patch) | |
| tree | dfe3e0fa93d3e91b3574db2a9b32d7c5ed57ab3b /Scripts/install_sourcekitten.sh | |
| parent | 38d5d6de414ad69d6a7dc744e4aed39c488ba30f (diff) | |
| parent | 9931580d9185e9123b6d45a45f20dbf929bb25b7 (diff) | |
Merge branch 'feature/rbdr-update-swift' into develop
Diffstat (limited to 'Scripts/install_sourcekitten.sh')
| -rwxr-xr-x | Scripts/install_sourcekitten.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Scripts/install_sourcekitten.sh b/Scripts/install_sourcekitten.sh deleted file mode 100755 index 9420a26..0000000 --- a/Scripts/install_sourcekitten.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Taken from: https://alexplescan.com/posts/2016/03/03/setting-up-swiftlint-on-travis-ci/ -# And adapted for sourcekitten - -# Installs the SourceKitten package. -# Tries to get the precompiled .pkg file from Github, but if that -# fails just recompiles from source. - -set -e - -SOURCEKITTEN_PKG_PATH="/tmp/SourceKitten.pkg" -SOURCEKITTEN_PKG_URL="https://github.com/jpsim/SourceKitten/releases/download/0.17.3/SourceKitten.pkg" - -wget --output-document=$SOURCEKITTEN_PKG_PATH $SOURCEKITTEN_PKG_URL - -if [ -f $SOURCEKITTEN_PKG_PATH ]; then - echo "SourceKitten package exists! Installing it..." - sudo installer -pkg $SOURCEKITTEN_PKG_PATH -target / -else - echo "SourceKitten package doesn't exist. Compiling from source..." && - git clone https://github.com/jspim/SourceKitten.git /tmp/SourceKitten && - cd /tmp/SourceKitten && - sudo make install -fi |