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

Re: How to obtain current package version number?



On 20030306T080640+0100, Marc Haber wrote:
> Because I don't find that approach very elegant, and it is also error
> prone. Imagine a local user diverting the file that I use for package
> version indication. The information which version is installed is
> already there, in the dpkg database. I only need to be able to access
> it.

You could also hardcode the version in the program itself, and do this
hardcoding automatically at build time.  See grep-dctrl for an example
on how to do this (especially its configure.in).

-- 
%%% Antti-Juhani Kaijanaho % gaia@iki.fi % http://www.iki.fi/gaia/ %%%

      Please send any work-related email to <antkaij@mit.jyu.fi>



Reply to: