[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Version number in rules



On Tuesday 6 May 2008 12:45, Sveinung Kvilhaugsvik wrote:
> Is there a way to get the Debian version as a variable in the rules
> file? Is there a standard way to remove the .dsfg from it?

The following works well for me. I'm not sure but I don't believe
there's a more 'standard' way. To remove the .dfsg, add some
sed to this line.

DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')


cheers,
Thijs

Attachment: pgpCiW7CfTpVN.pgp
Description: PGP signature


Reply to: