diff options
Diffstat (limited to 'patchlevel.h')
-rw-r--r-- | patchlevel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/patchlevel.h b/patchlevel.h index de1ecf3ced..88d0b0d44d 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -118,11 +118,12 @@ open PLIN, "<", "patchlevel.h" or die "Couldn't open patchlevel.h : $!"; open PLOUT, ">", "patchlevel.new" or die "Couldn't write on patchlevel.new : $!"; my $seen=0; while (<PLIN>) { - if (/\t,NULL/ and $seen) { + if (/^(\s+),NULL/ and $seen) { + my $pre = $1; while (my $c = shift @ARGV){ $c =~ s|\\|\\\\|g; $c =~ s|"|\\"|g; - print PLOUT qq{\t,"$c"\n}; + print PLOUT qq{$pre,"$c"\n}; } } $seen++ if /local_patches\[\]/; |