So what is the usual method of accessing control file values such as Package: in postinst?
What is the usual method of accessing user-defined control file values such as XC-branding in postinst? I would have presume that using variables such as %{Package} or %{branding} in postinst would have done it but it does not. -- IV On Sun, Apr 25, 2010 at 4:37 AM, Goswin von Brederlow <goswin-...@web.de> wrote: > Ignacio Valdes <ival...@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 > -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/r2i311679a81004291342m50290925g43982017d51ba...@mail.gmail.com