From 5a2d7717c905cf94edaa9126d05cd500563a2c81 Mon Sep 17 00:00:00 2001 From: Chris Araman Date: Wed, 28 Apr 2021 22:56:34 -0700 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20generated=20sourc?= =?UTF-8?q?e=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Sources/MasKit/SupportingFiles/Package.swift | 4 ---- script/bootstrap | 3 +++ script/version | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 Sources/MasKit/SupportingFiles/Package.swift diff --git a/.gitignore b/.gitignore index 3b099ac..18eb50c 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ build/ default.profraw releases/ xcuserdata +Sources/MasKit/Package.swift diff --git a/Sources/MasKit/SupportingFiles/Package.swift b/Sources/MasKit/SupportingFiles/Package.swift deleted file mode 100644 index 9014cdb..0000000 --- a/Sources/MasKit/SupportingFiles/Package.swift +++ /dev/null @@ -1,4 +0,0 @@ -// Generated by: script/version -enum Package { - static let Version = "1.8.1" -} diff --git a/script/bootstrap b/script/bootstrap index a0e34f5..d4e3aec 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -17,6 +17,9 @@ main() { # Install Homebrew tools rm -f Brewfile.lock.json brew bundle install --no-upgrade --verbose + + # Generate Package.swift + script/version } main diff --git a/script/version b/script/version index f97314c..b2372d9 100755 --- a/script/version +++ b/script/version @@ -13,7 +13,8 @@ VERSION=$(git describe --abbrev=0 --tags) VERSION=${VERSION#v} SCRIPT_PATH=$(dirname $(which $0)) -cat <"${SCRIPT_PATH}/../Sources/MasKit/SupportingFiles/Package.swift" + +cat <"${SCRIPT_PATH}/../Sources/MasKit/Package.swift" // Generated by: script/version enum Package { static let Version = "${VERSION}"