&& !compat(5)) {
# Add fragments to top so they run in reverse order when removing.
complex_doit("echo \"# Automatically added by ".basename($0)."\"> $outfile.new");
- complex_doit("sed '$sed' $infile >> $outfile.new");
+ complex_doit("sed \"$sed\" $infile >> $outfile.new");
complex_doit("echo '# End automatically added section' >> $outfile.new");
complex_doit("cat $outfile >> $outfile.new");
complex_doit("mv $outfile.new $outfile");
}
else {
complex_doit("echo \"# Automatically added by ".basename($0)."\">> $outfile");
- complex_doit("sed '$sed' $infile >> $outfile");
+ complex_doit("sed \"$sed\" $infile >> $outfile");
complex_doit("echo '# End automatically added section' >> $outfile");
}
}
+debhelper (9.20120313) UNRELEASED; urgency=low
+
+ * Revert avoid expanding shell metacharacters in sed call in autoscript().
+ It breaks dh_usrlocal and must be considered part of its interface.
+ Added to interface documentation.
+ Closes: #665263
+
+ -- Joey Hess <joeyh@debian.org> Thu, 22 Mar 2012 17:35:48 -0400
+
debhelper (9.20120312) unstable; urgency=low
* Also include CFLAGS in ld line for perl. Closes: #662666
- script to add to
- filename of snippet
- sed commands to run on the snippet. Ie, s/#PACKAGE#/$PACKAGE/
- (optional)
+ (optional) Note: Passed to the shell inside double quotes.
This command automatically adds shell script snippets to a debian
maintainer script (like the postinst or prerm).
Note that in v6 mode and up, the snippets are added in reverse