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

Re: Shared libraries and version handling



On Wed, 11 Sep 1996, Dale Scheetz wrote:

> Is there a method of picking up this information [package version]
> from a central source in the package?

You can just do what dpkg does - parse the changelog:

/usr/lib/dpkg/parsechangelog/debian < debian/changelog | \
sed -n '/Version: /s///p'

If you use a different changelog format, you'll have to call your
parser instead.  If you want just the major number for an soname, use
'/Version: \(.*\)\..*/s//\1/p' as the sed command.


Guy



Reply to: