From 1653aa5b2d360f91a44813483c4641d8c949835c Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 13 Jun 2015 18:33:45 -0700 Subject: stm32f2-f4: fix doxygen evil_mangler Now detects "stm32f2-f4" as a valid series, and rewrites it to "stm32f2_f4" as a namespace. Documentation will need to be refactored to point at this new namespace. --- support/doxygen/evil_mangler.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/doxygen/evil_mangler.awk b/support/doxygen/evil_mangler.awk index b07da72..6c338fa 100755 --- a/support/doxygen/evil_mangler.awk +++ b/support/doxygen/evil_mangler.awk @@ -16,7 +16,7 @@ BEGIN { # For extracting series component from header FILENAME. - series_regex = "/stm32[flw][0-9]*/"; + series_regex = "/stm32[flw][0-9]*-?[flw]?[0-9]*/"; # Holds header FILENAME. Cargo-culted; not sure why it's necessary. f = ""; # Holds series component. @@ -27,6 +27,7 @@ BEGIN { f = FILENAME; match(f, series_regex); series = substr(f, RSTART + 1, RLENGTH - 2); + sub(/-/, "_", series); printf("namespace %s {\n", series); } print; -- cgit v1.2.3