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

Re: Specifying %{variable} in control file for use in postinst?



Thomas Goirand <thomas@goirand.fr> writes:

> Russ Allbery wrote:
>
>     Thomas Goirand <thomas@goirand.fr> writes:
>
>
>
>         then in your debian/rules build rule, you can do something like:
>
>
>
>
>         MY_VERS=`head -n 1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1 |
>         cut -d'-' -f1`
>         MY_DEB_REL=`head -n 1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1 |
>         cut -d'-' -f2`
>         MY_PKGNAME=`head -n 1 debian/changelog | cut -d' ' -f1`
>
>
>     dpkg-parsechangelog makes this somewhat easier and more robust.
>
>
>
>
> Yes, but I'm using this in both deb and rpm building, and of course,
> dpkg-parsechangelog is not available in RPM based distros.
>
> Thomas

Then change that. :)

We have rpm in Debian. Let them have dpkg.

MfG
        Goswin


Reply to: