git: kernel: Refactor newvers.sh script

Aaron LI aly at crater.dragonflybsd.org
Sat Aug 1 21:29:31 PDT 2026


commit e8a62118fe4823bb5982e5d759e5ffaa6b6aae21
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Aug 2 12:23:39 2026 +0800

    kernel: Refactor newvers.sh script
    
    * Require and directly use 'KERN_IDENT' from the environment.  This
      avoids the 'make -V KERN_IDENT' command and thus fix the following
      warning from bmake since the last upgrade to 20260619:
      ```
      make[3]: warning: Invalid internal option "-J" in "/usr/obj/usr/src/sys/ALY"; see the manual page
      ```
    
    * Leverage the new tools/gencopyright.sh script to generate the
      copyright header.
    
    * Simplify the awk command that extracts '__DragonFly_version' from
      <sys/param.h> (referred to FreeBSD).
    
    * Clean up code and styles.

Summary of changes:
 sys/conf/kern.post.mk |  3 +-
 sys/conf/newvers.sh   | 97 +++++++++++++++++++++++++--------------------------
 2 files changed, 50 insertions(+), 50 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e8a62118fe4823bb5982e5d759e5ffaa6b6aae21


-- 
DragonFly BSD source repository


More information about the Commits mailing list