projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6348b76
)
Escape patch strings before embedding them in patchlevel.h
Gisle Aas [Sat, 27 Mar 2010 06:55:51 +0000 (22:55 -0800)]
patchlevel.h
patch
|
blob
|
blame
|
history
diff --git
a/patchlevel.h
b/patchlevel.h
index
7bd228b
..
cb18e9f
100644
(file)
--- a/
patchlevel.h
+++ b/
patchlevel.h
@@
-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};
}
}