diff --git a/tools/process-metadata b/tools/process-metadata index 3c90a40999..d7f48ed4f5 100755 --- a/tools/process-metadata +++ b/tools/process-metadata @@ -7,6 +7,7 @@ $heading = ""; $accumulated = ""; print " +/* This file was generated by tools/process-metadata */ void UIConfiguration::build_metadata () { @@ -14,7 +15,11 @@ UIConfiguration::build_metadata () #define VAR_META(name,...) { char const * _x[] { __VA_ARGS__ }; all_metadata.insert (std::make_pair ((name), PBD::upcase (_x))); }\n\n"; while (<>) { - if (/\[SECTION:/) { + if (/^#/) { + next; + } + + if (/\[SECTION:/) { chop; s/\[SECTION://; s/\]//;