summaryrefslogtreecommitdiff
path: root/DEVELOP.md
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-04-03 12:39:01 +0200
committerJonas Smedegaard <dr@jones.dk>2024-04-03 12:39:01 +0200
commit5327438e780341411e5ddd702f53a742ccb39233 (patch)
tree63b37c24e38a48dfc06e8d20f49fefb4a590d5e2 /DEVELOP.md
parent9cae34452be02dba4291ecb4ee85658b76fc378c (diff)
tighten markup
Diffstat (limited to 'DEVELOP.md')
-rw-r--r--DEVELOP.md53
1 files changed, 37 insertions, 16 deletions
diff --git a/DEVELOP.md b/DEVELOP.md
index cd2a59f..047adb2 100644
--- a/DEVELOP.md
+++ b/DEVELOP.md
@@ -2,13 +2,15 @@
## Create build environment
- localcowbuilder-create jessie
-
+```shell
+localcowbuilder-create jessie
+```
## Refresh build environment
- localcowbuilder-update jessie
-
+```shell
+localcowbuilder-update jessie
+```
## Build package
@@ -16,45 +18,64 @@ Minimal steps involved in building a new package:
Refresh copyright file:
- debian/rules pre-build DEB_MAINTAINER_MODE=1; debian/rules clean DEB_MAINTAINER_MODE=1
+```shell
+DEB_MAINTAINER_MODE=1 debian/rules pre-build
+DEB_MAINTAINER_MODE=1 debian/rules clean
+```
Resolve changelog from git commits:
- gbp dch -a
+```shell
+gbp dch -a
+```
Finalize changelog
(manually merge/drop items to reflect only product):
- dch -r
+```shell
+dch -r
+```
Build in clean chroot and tag as final:
- localgitcowdebuild sid --git-tag
+```shell
+localgitcowdebuild sid --git-tag
+```
Compare built binaries against previous ones
(in MC shell):
- debdiff --controlfiles ALL --wl %f %D/%F | less
+```shell
+debdiff --controlfiles ALL --wl %f %D/%F | less
+```
Check lintian warnings/errors:
- lintian *.changes
+```shell
+lintian *.changes
+```
Rebuild source-only package
(to save bandwidth uploading, and for official rebuild):
- localgitcowdebuild sid -S
+```shell
+localgitcowdebuild sid -S
+```
Sign and upload:
- debsign %f && dput %f
-
+```shell
+debsign %f && dput %f
+```
## Backport package for main architecture
- localcowdebuild jessie -sa
-
+```shell
+localcowdebuild jessie -sa
+```
## Backport package for secondary architecture
- localcowdebuild jessie-ia32 -b
+```shell
+localcowdebuild jessie-ia32 -b
+```