Update ReleaseProcedure authored by Patrick Thomas's avatar Patrick Thomas
**If this is a source code change then start here.**
**Source code change**
In the `main` branch:
- Update the version number in the source code for the command line usage message.
- Add a tag matching the version number in the command line usage message.
- Commit and push.
Set the version number to `<version>` in `pylon-camera-server.cpp`. Then
```
git commit -m "Setting version number to <version>."
git tag <version>
git push
git push --tags
```
In the `debian/bullseye` branch:
```
gbp import-ref main -u <version> --upstream-tag='%(version)s' --debian-branch=debian/bullseye
gbp dch -Rc -N <version>-1+deb11 -D release --debian-branch debian/bullseye
gbp tag --debian-branch=debian/bullseye
git push
git push --tags
```
- Import the changes from the `main` branch.
Change `<version>` to the version number of the `main` branch:
`gbp import-ref main -u <version> --upstream-tag='%(version)s' --debian-branch=debian/bullseye`
**If this is a packaging change then start here.**
- Update the changelog.
Change `<version>` to the version number of the `main` branch. If this is a source code change then change `<n>` to 1. If this is a packaging change then change `<n>` to the previous `n` plus 1.
`gbp dch -Rc -N <version>-<n>+deb11 -D release --debian-branch debian/bullseye`
- Add a tag:
`gbp tag --debian-branch=debian/bullseye`
-----
- Push all:
**Packaging only change**
In the `debian/bullseye` branch:
```
gbp dch -Rc -N <version>-<n>+deb11 -D release --debian-branch debian/bullseye
gbp tag --debian-branch=debian/bullseye
git push
git push --tags
```
\ No newline at end of file