Raphael Hertzog writes ("Re: Bug#721654: dgit: Support `dgit version`"):
> On Wed, 04 Sep 2013, Richard Hartmann wrote:
> > 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.
Why can't I ? It's in the package.
> 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))
This is quite annoying.
Ian.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]