Control: tag -1 moreinfo

On Fri, Sep 22, 2017 at 09:48:02AM +0100, Chris West wrote:
> Many packages contain invocations such as:
> 
> DEB_VERSION=$(shell dpkg-changelog | grep '^Version' | cut ...)
> 
> https://codesearch.debian.net/search?q=path%3Adebian%2Frules+shell+dpkg-parsechangelog
> 
> Since dpkg 1.17 (available in "oldstable" as of today), this can better
> be written as:
> 
> DEB_VERSION=$(shell dpkg-parsechangelog -SVersion)
> 
> Or:
> include /usr/share/dpkg/pkg-info.mk; $(DEB_VERSION)

Do you mean like this?
https://lintian.debian.org/tags/debian-rules-parses-dpkg-parsechangelog.html

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature

Reply via email to