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

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



Ignacio Valdes <ivaldes@hal-pc.org> writes:

> Hi, I want to define a variable such as package_initials in control
> file and be able to access %{package_initials} in postinst file. Do I
> define it in control file as:
>
> XC-package_initials: the_initials
>
> or some other way?
>
> -- IV

mv debian/postinst debian/postinst.in

and in rules do

	sed 's/%{package_initials}/initials/g' < debian/postinst.in > debian/<pkg>.postinst

MfG
        Goswin


Reply to: