Escape patch strings before embedding them in patchlevel.h

This commit is contained in:
Gisle Aas 2010-03-26 22:55:51 -08:00 committed by Gisle Aas
parent 6348b76e16
commit 321e50c78d

View 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};
}
}