HomeFreeBSD

tools/books*py: improve argument handling of DOC_LANG, and others

Description

tools/books*py: improve argument handling of DOC_LANG, and others

  1. fix shebang lines;
  2. add a -o option that makes no changes but prints the files that would be updated/created;
  3. allow the -l argument (and therefore DOC_LANG) to be whitespace separated, comma separated, or a mixture of both

Item 2 allows us to start tracking dependencies in Makefiles if we wish
and therefore reintroduce incremental builds, reducing the amount of
.PHONY targets that are not truly phony.

Item 3 restores compability with the documented DOC_LANG variable, which
was previously whitespace separated.

Reviewed by: dbaio, blackend
Differential Revision: https://reviews.freebsd.org/D30732

Details

Provenance
ceriAuthored on Jun 13 2021, 12:45 PM
Reviewer
dbaio
Differential Revision
D30732: doc tools/books*py: improve argument handling of DOC_LANG, and others
Parents
R9:1c8e08bc687f: Improve English terms.
Branches
Unknown
Tags
Unknown