Skip to content

Commit aabdd25

Browse files
fractalwrenchkattrali
authored andcommitted
Add makefile for bumping version number (#64)
1 parent 1f80b65 commit aabdd25

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Create a [Bintray](https://bintray.com) account:
5959
### 3. Making a release
6060

6161
1. Update the CHANGELOG.md file with any changes
62-
1. Bump the version number in `Notifier.java`
62+
1. Update the version number by running `make VERSION=[number] bump`
6363
1. Commit the changes
6464
1. Create a release build:
6565
* `./gradlew -Preleasing=true clean release`

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bump:
2+
ifeq ($(VERSION),)
3+
@$(error VERSION is not defined. Run with `make VERSION=number bump`)
4+
endif
5+
@echo Bumping the version number to $(VERSION)
6+
@sed -i '' "s/version=.*/version=$(VERSION)/" gradle.properties
7+
@sed -i '' "s/NOTIFIER_VERSION = .*;/NOTIFIER_VERSION = \"$(VERSION)\";/"\
8+
src/main/java/com/bugsnag/Notifier.java
9+
10+

0 commit comments

Comments
 (0)