| 1 |
Package Maintenance Tips |
| 2 |
======================== |
| 3 |
|
| 4 |
Clone and add upstream repo: |
| 5 |
$ gbp clone --pristine-tar https://anonscm.debian.org/git/pkg-go/packages/golang-github-xtaci-smux.git |
| 6 |
$ cd golang-github-xtaci-smux |
| 7 |
$ git remote add xtaci https://github.com/xtaci/smux |
| 8 |
|
| 9 |
When upstream releases a new version: |
| 10 |
$ debian/maint-tools/new_upstream |
| 11 |
## command below is optional. |
| 12 |
## if you want to touch ds source of new version from upstream, |
| 13 |
## e.g. remove more files, please do it now and then: |
| 14 |
$ git add -u |
| 15 |
# git diff --name-status <old-version-tag> <new-version-tag> |
| 16 |
$ git commit --amend --no-edit |
| 17 |
$ debian/maint-tools/update_ds_tag |
| 18 |
## make a new release |
| 19 |
$ dch -i |
| 20 |
$ dch -r |
| 21 |
$ git add -u |
| 22 |
$ git commit -m "Prepare to release x.y.z+ds-1" |
| 23 |
|
| 24 |
Build: |
| 25 |
## general gbp build |
| 26 |
$ gbp buildpackage -uc -us --git-pristine-tar |
| 27 |
## gbp build with pbuilder |
| 28 |
$ gbp buildpackage --git-pristine-tar --git-pbuilder --git-export-dir=../build-area |