]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Lib.pm
avoid expanding shell variables in sed string
[debhelper.git] / Debian / Debhelper / Dh_Lib.pm
index 070c6d6fc0cf08a7a3008f1398a41c1e28ba4cce..7073aa4ec92c29cea395a439a2af3c55d04a3201 100644 (file)
@@ -346,7 +346,7 @@ sub dirname {
                                }
                        }
                        else {
-                               warning("No compatability level specified in debian/compat");
+                               warning("No compatibility level specified in debian/compat");
                                warning("This package will soon FTBFS; time to fix it!");
                        }
 
@@ -533,14 +533,14 @@ sub autoscript {
           && !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");
        }
 }