git: include: Rewrite generation of <osreldate.h>
Aaron LI
aly at crater.dragonflybsd.org
Sat Aug 1 21:29:30 PDT 2026
commit 18323e1191feef830cb95b7d2f389e044a16ad66
Author: Aaron LI <aly at aaronly.me>
Date: Sun Aug 2 11:51:50 2026 +0800
include: Rewrite generation of <osreldate.h>
* Add the new tools/gencopyright.sh script to generate the copyright
header. Prefer the copyright year extracted from top-level COPYRIGHT,
similar to FreeBSD's.
* Directly extract the __DragonFly_version from <sys/param.h> as RELDATE
instead of calling newvers.sh. As a result, no need to clean up the
extra-generated files: version, vers.c and vers.txt.
By the way, this also avoids a few bmake warnings appeared after the
recent bmake upgrade (to 20260619):
```
make[2]: warning: Invalid internal option "-J" in "/usr/src"; see the manual page
make[2]: warning: Invalid internal option "-J" in "/usr/src"; see the manual page
make[2]: warning: Invalid internal option "-J" in "/usr/src"; see the manual page
make[5]: warning: Invalid internal option "-J" in "/usr/obj/usr/src/world_x86_64/usr/src/include"; see the manual page
make[2]: warning: Invalid internal option "-J" in "/usr/src"; see the manual page
make[2]: warning: Invalid internal option "-J" in "/usr/src"; see the manual page
```
This warning is caused by the 'make -V KERN_IDENT' command in the
newvers.sh script.
Summary of changes:
include/Makefile | 24 ++++++++++++------------
tools/gencopyright.sh | 26 ++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 12 deletions(-)
create mode 100755 tools/gencopyright.sh
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/18323e1191feef830cb95b7d2f389e044a16ad66
--
DragonFly BSD source repository
More information about the Commits
mailing list