1
Source README for module-assistant:
2
-----------------------------------
4
Some extra targets exist in debian/rules to help with common tasks.
7
+ Build the final source package:
8
-------------------------------
11
make -f debian/rules source-package
14
- For native packages, the directory can't be changed when
15
dpkg-source is run, so the tarball needs to be of the
16
$package-$version form.
17
- The .git/ directory would be embedded, even with “-i”.
19
Summary of what it does:
20
- Use “git archive | gzip” to create the tarball.
21
- Extract it, run “debuild -S” there, clean.
27
+ Prepare a changelog entry:
28
--------------------------
31
make -f debian/rules prepare-changelog
34
- In order to avoid duplicating git log messages directly in
35
debian/changelog (although it could be done thanks to
36
“debcommit”), and to make debian/changelog more concise (when a
37
commit fixes a mistake in a previous one or improves one, a
38
single line could be written), that target is to be called when
39
finalizing an upload. That way, a prospective changelog entry is
40
written, and can then be rephrased as wanted before it is
43
Summary of what it does:
44
- Determine the last known tag, using “git describe”.
45
- Determine the current branch, using “git branch”.
46
- Call “git-dch” with those parameters, so as to prepare a
47
changelog entry with all commit messages since the last known
51
- git-dch (git-buildpackage).
55
+ Commit the tarball to the pristine-tar branch:
56
----------------------------------------------
59
make -f debian/rules pristine-tar-commit
62
- Make it possible to commit very easily the tarball once a
63
version has been built, uploaded, and tagged, so that it is
64
possible to regenerate the exact tarball that was uploaded, only
65
from the git repository.
67
Summary of what it does:
68
- Determine the version, and the tarball name.
69
- Make sure the tarball is available in the parent directory.
70
- Commit it using “pristine-tar” and the determined version.
73
- pristine-tar (pristine-tar).
76
-- Cyril Brulebois <kibi@debian.org>, Wed, 25 Mar 2009 00:57:43 +0100