Skip #ifdefs and other preprocessor lines when parsing the
Gisle Aas [Wed, 12 Nov 2008 14:50:14 +0000 (14:50 +0000)]
local_patches section of patchlevel.h.

p4raw-id: //depot/perl@34824

utils/perlbug.PL

index b75a677..d0263f3 100644 (file)
@@ -40,6 +40,7 @@ if (! defined($_)) {
 my @patches;
 while (<PATCH_LEVEL>) {
     last if /^\s*}/;
+    next if /^\s*#/;  # preprocessor stuff
     chomp;
     s/^\s+,?\s*"?//;
     s/"?\s*,?$//;