On 2023-02-03 11 h 58, FC Stegerman wrote:
> Presumably there is a way to get the version from e.g.
> "dpkg-parsechangelog -S Version" (minus the -1 revision) instead. I'm
> not sure how other packages handle this.
You can get those values via the variables provided by
/usr/share/dpkg/pkg-info.mk
You can "source" those in your d/rules makefile by using:
include /usr/share/dpkg/pkg-info.mk
NB: Sorry if people get this twice, I forgot to email the BTS the first
time around ...
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ po...@debian.org / veronneau.org
⠈⠳⣄