forked from IBDecodable/IBLinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PREFIX?=/usr/local
build:
swift build --disable-sandbox -c release --static-swift-stdlib
clean_build:
rm -rf .build
make build
portable_zip: build
rm -rf portable_iblinter
mkdir portable_iblinter
mkdir portable_iblinter/bin
cp -f .build/release/iblinter portable_iblinter/bin/iblinter
cp -f LICENSE portable_iblinter
cd portable_iblinter
(cd portable_iblinter; zip -yr - "bin" "LICENSE") > "./portable_iblinter.zip"
rm -rf portable_iblinter
install: build
mkdir -p "$(PREFIX)/bin"
cp -f ".build/release/iblinter" "$(PREFIX)/bin/iblinter"
current_version:
@cat .version
bump_version:
$(eval NEW_VERSION := $(filter-out $@,$(MAKECMDGOALS)))
@echo $(NEW_VERSION) > .version
@sed 's/__VERSION__/$(NEW_VERSION)/g' script/Version.swift.template > Sources/IBLinterKit/Version.swift
git commit -am"Bump version to $(NEW_VERSION)"
publish:
brew update && brew bump-formula-pr --tag=$(shell git describe --tags) --revision=$(shell git rev-parse HEAD) iblinter
COCOAPODS_VALIDATOR_SKIP_XCODEBUILD=1 pod trunk push IBLinter.podspec
%:
@: