Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: syssrc



Module Name:    syssrc
Committed By:   hubertf
Date:           Sun Jan 23 23:37:46 UTC 2000

Modified Files:
        syssrc/usr.sbin/config: config.h gram.y main.c scan.l sem.c sem.h

Log Message:
Keeping my kernel config files under RCS control, I always wished to
have a way to embed the revision number into the kernel's "uname -v"
output. The patch below does this, by generating a new keyword "ident"
that can be followed by any string, e.g.

        ident   "NOON-$Revision$"

will lead to
                                           vvvvvvvvvvvvvvvvvvvvvv
        char version[] =     "NetBSD 1.4P (NOON-$Revision: 1.21 $) #37: Thu Jan
20 02:01:23 MET 2000\n    feyrer@noon:/usr/cvs.local/src-current/sys/arch/i386/c
ompile/NOON\n";

This will lead to a version of "MYMACHINE-$Revision$" instead of the
kernel config file name. If "ident" is not present, the current behaviour
of using the kernel config file's name as identifier is used.

Implement by writing the ident to a file ("ident") in the compile dir,
which newvers.sh will pick up for generating the ident.


To generate a diff of this commit:
cvs rdiff -r1.46 -r1.47 syssrc/usr.sbin/config/config.h
cvs rdiff -r1.27 -r1.28 syssrc/usr.sbin/config/gram.y
cvs rdiff -r1.44 -r1.45 syssrc/usr.sbin/config/main.c
cvs rdiff -r1.26 -r1.27 syssrc/usr.sbin/config/scan.l
cvs rdiff -r1.23 -r1.24 syssrc/usr.sbin/config/sem.c
cvs rdiff -r1.11 -r1.12 syssrc/usr.sbin/config/sem.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index