Wednesday, 14 August 2013

How do I extract the package version from debian/changelog?

How do I extract the package version from debian/changelog?

What's the most robust way to parse a source package's debian/changelog
file (or debian/control?) to get the package's version number? Something
like:
pkgver=$(dpkg-parsechangelog | magic_goes_here)

No comments:

Post a Comment