]> rtime.felk.cvut.cz Git - hercules2020/hercules-compiler.git/commitdiff
Add git-buildpackage configuration and instructions
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 22 Nov 2018 08:41:44 +0000 (09:41 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 22 Nov 2018 09:37:55 +0000 (10:37 +0100)
debian/README.source [new file with mode: 0644]
debian/gbp.conf [new file with mode: 0644]

diff --git a/debian/README.source b/debian/README.source
new file mode 100644 (file)
index 0000000..7a3a376
--- /dev/null
@@ -0,0 +1,29 @@
+Releasing a new Debian package
+==============================
+
+0. (optional) Test the build:
+
+               gbp dch --snapshot
+               gbp buildpackage --git-ignore-new
+
+1. Update Debian changelog for the new release:
+
+               git checkout debian/changelog    # remove any snapshots etc. from the changelog
+               gbp dch --release --commit
+
+   This opens an editor, where you can (if needed) change the package
+   version or the changelog entries generated automatically from git
+   commit messages.
+
+2. Build the package:
+
+               gbp buildpackage --git-tag -b -uc -us
+
+   The `-b -uc` options and possibly others are passed to the build
+   tool. You can add `--git-builder=sbuild` if you want to use
+   `sbuild` command to build the package in clean environment. Then
+   use required sbuild options instead of `-b -uc`.
+
+3. Push new commit (change log) and version tag to the server:
+
+               git push --follow-tags
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644 (file)
index 0000000..90066d8
--- /dev/null
@@ -0,0 +1,5 @@
+[DEFAULT]
+upstream-branch=master
+
+[buildpackage]
+no-create-orig=True