summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-11-14 06:56:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-11-14 06:56:58 +0000
commit52e2032d30297d43096e85791078d9e2bd2f93bf (patch)
tree32abea5f9722e1df683e156f992bddbbeca18d38 /usr.sbin
parent5ac4e796ab65f0ab2514982a0b736ed185b71681 (diff)
version.c should be generated from Version.c and ${VER}
It makes no sense to keep a generated version in the tree that needs to be updated each time; OK pvalchev@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/named/named/Makefile8
-rw-r--r--usr.sbin/named/named/version.c95
2 files changed, 5 insertions, 98 deletions
diff --git a/usr.sbin/named/named/Makefile b/usr.sbin/named/named/Makefile
index 7283c6e3506..187a2be7e10 100644
--- a/usr.sbin/named/named/Makefile
+++ b/usr.sbin/named/named/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2002/05/11 00:20:20 espie Exp $
+# $OpenBSD: Makefile,v 1.5 2002/11/14 06:56:57 millert Exp $
# $NetBSD: Makefile,v 1.1 1996/02/02 15:28:00 mrg Exp $
# from: $Id: Makefile,v 8.1 1994/12/15 06:23:45 vixie Exp
@@ -10,13 +10,15 @@ SRCS= version.c db_dump.c db_glue.c db_load.c db_lookup.c db_reload.c \
ns_init.c ns_main.c ns_maint.c ns_ncache.c ns_req.c ns_resp.c \
ns_sort.c ns_stats.c ns_udp.c ns_validate.c storage.c tree.c
MAN= named.8
+CLEANFILES+= version.c
CFLAGS+=${INCLUDE} ${CONFIG}
-makeversionc:
+
+version.c: Version.c ${.CURDIR}/../Makefile
(u=root d=`pwd` h=localhost t=`date +%c`; \
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
- < ${.CURDIR}/Version.c > ${.CURDIR}/version.c)
+ < ${.CURDIR}/Version.c > version.c)
.include <bsd.prog.mk>
.include "../../Makefile.inc"
diff --git a/usr.sbin/named/named/version.c b/usr.sbin/named/named/version.c
deleted file mode 100644
index 05c2c98b9bb..00000000000
--- a/usr.sbin/named/named/version.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* $OpenBSD: version.c,v 1.5 2001/01/30 20:56:10 niklas Exp $ */
-
-/*
- * @(#)Version.c 4.9 (Berkeley) 7/21/90
- * $From: Version.c,v 8.2 1997/06/01 20:34:34 vixie Exp $
- */
-
-#ifndef lint
-#if 0
-char sccsid[] = "@(#)named 4.9.8-REL Tue Jan 30 21:50:03 2001 root@localhost:/usr/src/usr.sbin/named/named/obj";
-char rcsid[] = "$From: Version.c,v 8.2 1997/06/01 20:34:34 vixie Exp $";
-#else
-char rcsid[] = "$OpenBSD: version.c,v 1.5 2001/01/30 20:56:10 niklas Exp $";
-#endif
-#endif /* not lint */
-
-char Version[] = "named 4.9.8-REL Tue Jan 30 21:50:03 2001\n\troot@localhost:/usr/src/usr.sbin/named/named/obj";
-char ShortVersion[] = "4.9.8-REL";
-
-#ifdef COMMENT
-
-SCCS/s.Version.c:
-
-D 4.8.3 90/06/27 17:05:21 bloom 37 35 00031/00028/00079
-Version distributed with 4.3 Reno tape (June 1990)
-
-D 4.8.2 89/09/18 13:57:11 bloom 35 34 00020/00014/00087
-Interim fixes release
-
-D 4.8.1 89/02/08 17:12:15 karels 34 33 00026/00017/00075
-branch for 4.8.1
-
-D 4.8 88/07/09 14:27:00 karels 33 28 00043/00031/00049
-4.8 is here!
-
-D 4.7 87/11/20 13:15:52 karels 25 24 00000/00000/00062
-4.7.3 beta
-
-D 4.6 87/07/21 12:15:52 karels 25 24 00000/00000/00062
-4.6 declared stillborn
-
-D 4.5 87/02/10 12:33:25 kjd 24 18 00000/00000/00062
-February 1987, Network Release. Child (bind) grows up, parent (kevin) leaves home.
-
-D 4.4 86/10/01 10:06:26 kjd 18 12 00020/00017/00042
-October 1, 1986 Network Distribution
-
-D 4.3 86/06/04 12:12:18 kjd 12 7 00015/00028/00044
-Version distributed with 4.3BSD
-
-D 4.2 86/04/30 20:57:16 kjd 7 1 00056/00000/00016
-Network distribution Freeze and one more version until 4.3BSD
-
-D 1.1 86/04/30 19:30:00 kjd 1 0 00016/00000/00000
-date and time created 86/04/30 19:30:00 by kjd
-
-code versions:
-
-Makefile
- Makefile 4.14 (Berkeley) 2/28/88
-db.h
- db.h 4.13 (Berkeley) 2/17/88
-db_dump.c
- db_dump.c 4.20 (Berkeley) 2/17/88
-db_load.c
- db_load.c 4.26 (Berkeley) 2/28/88
-db_lookup.c
- db_lookup.c 4.14 (Berkeley) 2/17/88
-db_reload.c
- db_reload.c 4.15 (Berkeley) 2/28/88
-db_save.c
- db_save.c 4.13 (Berkeley) 2/17/88
-db_update.c
- db_update.c 4.16 (Berkeley) 2/28/88
-ns_forw.c
- ns_forw.c 4.26 (Berkeley) 3/28/88
-ns_init.c
- ns_init.c 4.23 (Berkeley) 2/28/88
-ns_main.c
- Copyright (c) 1986 Regents of the University of California.\n\
- ns_main.c 4.30 (Berkeley) 3/7/88
-ns_maint.c
- ns_maint.c 4.23 (Berkeley) 2/28/88
-ns_req.c
- ns_req.c 4.32 (Berkeley) 3/31/88
-ns_resp.c
- ns_resp.c 4.50 (Berkeley) 4/7/88
-ns_sort.c
- ns_sort.c 4.3 (Berkeley) 2/17/88
-ns_stats.c
- ns_stats.c 4.3 (Berkeley) 2/17/88
-newvers.sh
- newvers.sh 4.4 (Berkeley) 3/28/88
-
-#endif /* COMMENT */