On Wed, 04 Sep 2013, Richard Hartmann wrote:
> > Perhaps "dgit version" should get the information from the first line
> > of /usr/share/doc/dgit/changelog.gz.
> 
> If you don't mind dgit depending on IO::Uncompress::Gunzip just for
> that (and IO::Uncompress::Xz at some point), I will submit such a
> patch.

Sorry, this is plain stupid. You can't rely on the availability of the
changelog file.

If you want to avoid the duplication, put a placeholder in the source file
and replace it at build time.

our $version = "@VERSION@";

and then sed -i -e "s/@VERSION@/$VERSION/"
(with VERSION=$(dpkg-parsechangelog -SVersion))

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to