Permalink
Browse files

Fix: perl script regexp to toggle flex debug information

  • Loading branch information...
mehw committed Dec 16, 2017
1 parent bcc09aa commit b11b19badf4ef7318512c28f448dbecd6a47a715
Showing with 4 additions and 4 deletions.
  1. +4 −4 doc/arch.doc
View
@@ -220,12 +220,12 @@ if (open(F,"<src/CMakeFiles/_doxygen.dir/build.make.old")) {
}
print "Processing build.make...\n";
while (<F>) {
if ( s/flex \$\(LEX_FLAGS\) -P${file}YY/flex \$(LEX_FLAGS) -d -P${file}YY/ ) {
print "Enabling debug info for $file.l\n";
}
elsif ( s/flex \$\(LEX_FLAGS\) -d -P${file}YY/flex \$(LEX_FLAGS) -P${file}YY/ ) {
if ( s/flex \$\(LEX_FLAGS\) -d(.*) ${file}.l/flex \$(LEX_FLAGS)$1 ${file}.l/ ) {
print "Disabling debug info for $file\n";
}
elsif ( s/flex \$\(LEX_FLAGS\)(.*) ${file}.l$/flex \$(LEX_FLAGS) -d$1 ${file}.l/ ) {
print "Enabling debug info for $file.l\n";
}
print G "$_";
}
close F;

0 comments on commit b11b19b

Please sign in to comment.