Summary
Restore and improve driver references in generated hardware.adoc in the releases documentation.
Details
This patch makes the following improvements to the hardware notes generation script:
- Driver name ihas been changed to man page link.
Replaces driver names (from .Nm) in the HARDWARE section with links to the corresponding manual pages (e.g. man:uplcom[4] or external link when names differ, f.e for ar40xx).
- Fix escaped underscores (\_)
Converts \_ to _ in the generated output.
This eliminates rendering issues and avoids manual fixes (previously ~30 occurrences per release).
- Correct HARDWARE section extraction
Fixes truncation caused by sed stopping at # inside entities (e.g. ®).
Now the full section is properly included up to the next header.
Background
Reported in Bugzilla:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283060
Users noticed:
Missing links to manual pages in newer releases
Broken rendering due to escaped underscores (noticed by me)
Incomplete HARDWARE sections in hardware.adoc for ice, idc, atp, ultp drivers (all have # symbol in HARDWARE section text)
This patch addresses all three issues in the tooling.