-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (28 loc) · 1.32 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
bump:
ifeq ($(VERSION),)
@$(error VERSION is not defined. Run with `make VERSION=number bump`)
endif
@echo Bumping the version number to $(VERSION)
@sed -i '' "s/\"version\": \".*\",/\"version\": \"$(VERSION)\",/" package.json
@sed -i '' "s/documentation-.*-blue.svg/documentation-$(VERSION)-blue.svg/" README.md
@sed -i '' "s/versionName \'.*\'/versionName \'$(VERSION)\'/" android/build.gradle
# Makes a release and pushes to github/npm
release:
ifeq ($(VERSION),)
@$(error VERSION is not defined. Run with `make VERSION=number release`)
endif
make VERSION=$(VERSION) bump && git commit -am "v$(VERSION)" && git tag v$(VERSION) \
&& git push origin && git push --tags && npm publish
upgrade_vendor:
ifeq ($(ANDROID_VERSION),)
@$(error ANDROID_VERSION is not defined. Run with `make ANDROID_VERSION=number IOS_VERSION=number upgrade_vendor`)
endif
@sed -i '' "s/bugsnag-android:.*\'/bugsnag-android:$(ANDROID_VERSION)\'/" android/build.gradle
ifeq ($(IOS_VERSION),)
@$(error IOS_VERSION is not defined. Run with `make ANDROID_VERSION=number IOS_VERSION=number upgrade_vendor`)
endif
@git -C ../bugsnag-cocoa fetch
@git -C ../bugsnag-cocoa checkout v$(IOS_VERSION)
@rsync --delete -al ../bugsnag-cocoa/Source cocoa/vendor/bugsnag-cocoa/Source
@rsync --delete -al ../bugsnag-cocoa/iOS cocoa/vendor/bugsnag-cocoa/iOS
@git status