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

Re: Policy on Account creation and deletion?

On Tue, 16 Mar 2004 16:34:49 +0100, Wouter Verhelst <wouter@grep.be>
>On Tue, Mar 16, 2004 at 04:01:09PM +0100, Marc Haber wrote:
>> Any ideas how one could implement shared variables in maintainer
>> scripts? There are things like the account name that need to be
>> present in postinst and postrm, and I am notorious for changing one
>> while leaving the other. Is there any recommended hack to do variable
>> substitution in maintainer scripts at build time?
>The autoconf/debhelper way?
>for file in postrm prerm postinst preinst
>  sed -ie "s/USERNAME_TO_BE_FILLED_HERE/$username/g" debian/$file

The debhelper way, yes. But, IMO, in debhelper proper. See #239659. I
hope Joey will agree this time.

Marc, not very lucky with debhelper wishlist bugs

-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

Reply to: