summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-05-21 19:21:46 +0000
committereivind <eivind@FreeBSD.org>1998-05-21 19:21:46 +0000
commitdd22670484cd50fd729054fdd131863d6a43f30f (patch)
tree7cb5144651e6791de4d7109229e509f346983b62 /sys/conf
parentbf12e7b4b2753daf6c48943f2d7feca8c3415c40 (diff)
downloadFreeBSD-src-dd22670484cd50fd729054fdd131863d6a43f30f.zip
FreeBSD-src-dd22670484cd50fd729054fdd131863d6a43f30f.tar.gz
Move __FreeBSD_version from src/sys/conf/newvers.sh to
src/sys/sys/param.h, to facilitate access from the kernel. This make it possible to do outside kernel development and have it actually work properly.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/Makefile.i3864
-rw-r--r--sys/conf/Makefile.powerpc4
-rw-r--r--sys/conf/newvers.sh11
3 files changed, 13 insertions, 6 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index bd0d627..ad46416 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.111 1998/05/20 20:35:35 eivind Exp $
+# $Id: Makefile.i386,v 1.112 1998/05/20 20:54:04 eivind Exp $
#
# Makefile for FreeBSD
#
@@ -226,7 +226,7 @@ param.c: $S/conf/param.c
param.o: param.c Makefile
${CC} -c ${CFLAGS} ${PARAM} param.c
-vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+vers.o: $S/sys/param.h ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
${CC} ${CFLAGS} -c vers.c
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index bd0d627..ad46416 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.111 1998/05/20 20:35:35 eivind Exp $
+# $Id: Makefile.i386,v 1.112 1998/05/20 20:54:04 eivind Exp $
#
# Makefile for FreeBSD
#
@@ -226,7 +226,7 @@ param.c: $S/conf/param.c
param.o: param.c Makefile
${CC} -c ${CFLAGS} ${PARAM} param.c
-vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+vers.o: $S/sys/param.h ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
${CC} ${CFLAGS} -c vers.c
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 689b1a9..6595cb7 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -32,7 +32,7 @@
# SUCH DAMAGE.
#
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
-# $Id: newvers.sh,v 1.35 1998/05/20 20:35:39 eivind Exp $
+# $Id: newvers.sh,v 1.36 1998/05/20 20:54:07 eivind Exp $
TYPE="FreeBSD"
REVISION="3.0"
@@ -44,7 +44,14 @@ if [ "X${SNAPDATE}" != "X" ]; then
fi
VERSION="${TYPE} ${RELEASE}"
-RELDATE="300001"
+if [ "X${PARAMFILE}" != "X" ]; then
+ RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
+ ${PARAMFILE})
+else
+ RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
+ $(dirname $0)/../sys/param.h)
+fi
+
b=share/examples/etc/bsd-style-copyright
year=`date '+%Y'`
OpenPOWER on IntegriCloud