docs: Add missing files to sed in RELEASING

This commit is contained in:
Eric Anderson 2016-06-16 10:12:41 -07:00
parent 16b096b571
commit 554287a0cd
1 changed files with 9 additions and 9 deletions

View File

@ -69,8 +69,7 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
$ git checkout -b v$MAJOR.$MINOR.x master $ git checkout -b v$MAJOR.$MINOR.x master
$ git push upstream v$MAJOR.$MINOR.x $ git push upstream v$MAJOR.$MINOR.x
``` ```
2. For `master`, change `build.gradle` and 2. For `master`, change root build files to the next minor snapshot (e.g.
`android-interop-testing/app/build.gradle` to the next minor snapshot (e.g.
``0.8.0-SNAPSHOT``). ``0.8.0-SNAPSHOT``).
```bash ```bash
@ -88,25 +87,26 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
$ git merge --ff-only bump-version $ git merge --ff-only bump-version
$ git push upstream master $ git push upstream master
``` ```
4. For vMajor.Minor.x branch, change `build.gradle` and 4. For vMajor.Minor.x branch, change root build files to remove "-SNAPSHOT" for
`android-interop-testing/app/build.gradle` to remove "-SNAPSHOT" for the next the next release version (e.g. `0.7.0`). Commit the result and make a tag:
release version (e.g. `0.7.0`). Commit the result and make a tag:
```bash ```bash
$ git checkout -b release v$MAJOR.$MINOR.x $ git checkout -b release v$MAJOR.$MINOR.x
# Change version to remove -SNAPSHOT # Change version to remove -SNAPSHOT
$ sed -i 's/-SNAPSHOT\(.*CURRENT_GRPC_VERSION\)/\1/' \ $ sed -i 's/-SNAPSHOT\(.*CURRENT_GRPC_VERSION\)/\1/' \
build.gradle android-interop-testing/app/build.gradle build.gradle android-interop-testing/app/build.gradle \
examples/android/app/build.gradle
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH" $ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH"
$ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH" $ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH"
``` ```
5. Change `build.gradle` and `android-interop-testing/app/build.gradle` to the 5. Change root build files to the next snapshot version (e.g. `0.7.1-SNAPSHOT`).
next snapshot version (e.g. `0.7.1-SNAPSHOT`). Commit the result: Commit the result:
```bash ```bash
# Change version to next patch and add -SNAPSHOT # Change version to next patch and add -SNAPSHOT
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \ $ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
build.gradle android-interop-testing/app/build.gradle build.gradle android-interop-testing/app/build.gradle \
examples/android/app/build.gradle
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT" $ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
``` ```
6. Go through PR review and push the release tag and updated release branch to 6. Go through PR review and push the release tag and updated release branch to