HomeFreeBSD

doc.docbook.mk: Fix LATESTREVISION determination, causes build failure on non…

Description

doc.docbook.mk: Fix LATESTREVISION determination, causes build failure on non-English locales

Fixes, e.g., manual articles/books build (i.e., typing make in the right
directory).

There were two problems:

  1. Git or SVN information retrieval depends on the current locale, and doesn't

work with non-English ones.

  1. Fallback for LATESTREVISION most of the time (sometimes works, probable

race) itself fails because PWD is set to document's directory + '/obj', but
sources are in the document's directory.

Problem 2 is the most annoying because documentation builds simply fails
(xsltproc becomes unable to resolve 'latestrevision.*' variables in, e.g.,
articles). But point 2's failure appears only because of point 1's failure,
which doesn't happen on a machine with English or C locale.

PR: 246936

Details

Provenance
olceAuthored on Jan 19 2021, 12:04 PM
debdrupCommitted on Jan 19 2021, 2:18 PM
Parents
R9:f2a33a330d5a: articles/nanobsd: Add section on customizing NanoBSD
Branches
Unknown
Tags
Unknown