NetBSD/share
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
..
dict web2: sort -f, dedup. Fix ATF failure for nbperf(1). 2023-08-01 03:28:53 +00:00
doc spacify the paper size for PostScript 2024-04-05 23:06:32 +00:00
examples fix recently committed typos by msaitoh in few more places, as well as few more. 2024-05-14 19:00:43 +00:00
i18n Fix few more typos in comments and log message: 2024-02-11 10:36:40 +00:00
installboot
legal
locale Add missing dot in abbreviation. 2023-02-01 20:24:22 +00:00
man New make(1) variable NETBSD_REVISIONID in the NetBSD build. 2024-05-29 02:06:45 +00:00
me fix various typos in comments and log messages. 2022-04-16 18:15:20 +00:00
misc acronyms.comp: add SBI 2024-05-19 15:47:38 +00:00
mk New make(1) variable NETBSD_REVISIONID in the NetBSD build. 2024-05-29 02:06:45 +00:00
nls
tabset
terminfo terminfo: Our local changes are now upstream; reduce diff to upstream. 2024-01-27 20:19:21 +00:00
tmac
wscons Fix typo in comment 2024-05-16 14:11:42 +00:00
xml
Makefile
Makefile.inc