3 # This is needed for a nasty preinst hack to work around a bug in sarge's
4 # version of dpkg. It substitutes the literal text of conffiles into preinst
5 # scripts so that they can be used when moving conffiles between packages.
13 open FILE, '<', $ARGV[0];
17 # Quote for the shell.
20 $texts{$name} = $text;
24 for my $name (keys %texts) {
25 s/\@$name\@/'$texts{$name}'/g;