Don't use the RCS 'Name' keyword, it makes doing release builds more

annoying for no good reason.  Since a version seems to be desired,
define an OS_VERSION string in the Makefile and use it in the code.
This commit is contained in:
cgd 1999-01-19 07:05:59 +00:00
parent 593d6c65b9
commit c014ce1d6e
2 changed files with 8 additions and 3 deletions

View File

@ -34,4 +34,8 @@ SRCS = dhcpd.c dhcp.c bootp.c confpars.c db.c
PROG = dhcpd
MAN = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
OS_SYSTEM != uname -s
OS_RELEASE != uname -r
CPPFLAGS+=-DOS_VERSION="\"${OS_SYSTEM} ${OS_RELEASE}\""
.include <bsd.prog.mk>

View File

@ -42,13 +42,14 @@
#ifndef lint
static char ocopyright[] =
"$Id: dhcpd.c,v 1.1.1.7 1998/05/18 06:54:01 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
"$Id: dhcpd.c,v 1.2 1999/01/19 07:05:59 cgd Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
#endif
static char copyright[] =
"Copyright 1995, 1996 The Internet Software Consortium.";
static char arr [] = "All rights reserved.";
static char message [] = "Internet Software Consortium DHCPD $Name: $";
static char message [] = "Internet Software Consortium DHCPD";
static char os_version [] = OS_VERSION;
#include "dhcpd.h"
@ -170,7 +171,7 @@ int main (argc, argv, envp)
}
if (!quiet) {
note (message);
note ("%s (%s)", message, os_version);
note (copyright);
note (arr);
}