Automatically uninstall versions when creating a Debian package

I have a set of scripts for packaging Debian, and I would like the version number of the package to increase every time it is created. (i.e. debian_revision , as stated in the Debian Policy Guide ) That is, the first build should be PACKAGE-1.0-0 , then PACKAGE-1.0-0 , and so on (where 1.0 is upstream_version ). Is there an easy way to specify this β€œadditional” version number without creating a new change log entry?

I want this to be done automatically by the Makefile for the project whenever a specific target has been created (i.e. deb )

+6
versioning debian packaging packages
source share
1 answer

dh_* scripts read debian/changelog to create a change file and, among other things, install versions. You should not change the version without editing the change log, but if your problem is with manual changes, you can make a script that calls

 dch -i 

or if your problem is related to changes in debian/changelog , you can make a bash script to automatically change the version.

+6
source share

All Articles