Re: Alternative post[inst,rm} script
On Mon, Apr 19, 2004 at 10:49:49AM +0200, Andreas Tille wrote:
> but I wonder if we could do something more sane here.
Don't have the script itself determine the name during run-time. Instead,
rely on cdd-install-helper to substitute it in the postinst/postrm via sed,
since cdd-install-helper already has the value (which it determined from
control) in the $cdd variable.
e.g. in the template, say:
cdd=#CDDNAME#
and in cdd-install-helper:
sed -e "s/#CDDNAME#/$cdd/" /usr/share/cdd/templates/postinst >debian/"$cdd"-"$pkg".postinst
I don't know what syntax you want to use for substitution vars inside the
templates. Debhelper uses #DEBHELPER#, so I have just done the same.
Ben
--
,-. nSLUG http://www.nslug.ns.ca synrg@sanctuary.nslug.ns.ca
\`' Debian http://www.debian.org synrg@debian.org
` [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ]
[ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ]
Reply to: