NetBSD/share/man
riastradh 256d995a31 New make(1) variable NETBSD_REVISIONID in the NetBSD build.
This is intended to be a tree-wide revision identifier, like a commit
hash or similar.  This way, in builds from non-CVS trees where
per-file $NetBSD$ revision ids aren't incremented, we can still track
some version provenance of files with ident(1).

If defined, bsd.own.mk adds a macro _NETBSD_REVISIONID to CPPFLAGS
with the stringified text of NETBSD_REVISIONID.

In turn, if _NETBSD_REVISIONID is defined in sys/cdefs.h, then
__RCSID will put the concatenation of:
- `$NetBSD: '
- the file name
- ` '
- _NETBSD_REVISIONID
- ` $'
alongside the per-file revision id passed as an argument to __RCSID.

Since this is passed through command-line arguments, it doesn't cause
make to consider any dependencies to change when the revision id
changes -- so incremental builds remain incremental.  And if you
don't set it, nothing changes from the __RCSID we had before.

Currently nothing sets NETBSD_REVISIONID automatically yet -- subject
to experimentation.  Could just be verbatim commit hash, or could be
longer `hg identify' output -- or, in git, with the help of tags,
could be `git describe --dirty' output like

10.99.10-2924-gd01834fb75de

(or `10.99.10-2924-gd01834fb75de-dirty' if the working tree is dirty)
for the commit at
https://mail-index.netbsd.org/source-changes/2024/05/24/msg151526.html
which is 2924 linear commits after the commit bumping sys/param.h to
10.99.10 and (in the current git conversion) had commit hash starting
with d01834fb75.  This may require some discipline around branching
and tagging but it's worth a shot -- we'll see.

Based on a patch from joerg@ a while ago.
2024-05-29 02:06:45 +00:00
..
man0 specify the page size for PostScript 2024-04-05 23:05:53 +00:00
man1 Grammar 2019-09-01 14:40:07 +00:00
man2 white space 2020-06-08 17:19:44 +00:00
man3 dlfcn.3: remove duplicated dlopen() entry 2024-03-09 18:43:39 +00:00
man3lua delete attribution per request of contributor 2023-03-01 21:06:41 +00:00
man4 audio.4: Document how the "delta" affects setting mixer levels. 2024-05-27 02:39:15 +00:00
man5 New make(1) variable NETBSD_REVISIONID in the NetBSD build. 2024-05-29 02:06:45 +00:00
man6
man7 hier(7): remove reference to /var/db/pkg 2024-03-17 22:05:23 +00:00
man8 creds_msdos.8: consistently include a hypen in "MS-DOS" 2024-05-13 23:10:47 +00:00
man9 s/and/an/ 2024-05-23 06:35:45 +00:00
man9lua
tools Drop share/man/tools/missing 2017-12-19 19:04:12 +00:00
Makefile