Escape patch strings before embedding them in patchlevel.h
Gisle Aas [Sat, 27 Mar 2010 06:55:51 +0000 (22:55 -0800)]
patchlevel.h

index 7bd228b..cb18e9f 100644 (file)
@@ -92,6 +92,8 @@ my $seen=0;
 while (<PLIN>) {
     if (/\t,NULL/ and $seen) {
        while (my $c = shift @ARGV){
+           $c =~ s|\\|\\\\|g;
+           $c =~ s|"|\\"|g;
             print PLOUT qq{\t,"$c"\n};
        }
     }