diff options
author | Eivind Eklund <eivind@FreeBSD.org> | 1998-05-21 19:21:46 +0000 |
---|---|---|
committer | Eivind Eklund <eivind@FreeBSD.org> | 1998-05-21 19:21:46 +0000 |
commit | 3933c622cd68621a164c8084906fb91c4ea257de (patch) | |
tree | 68896bd1d95a14452a6617ecbdef755e6c0aa8af /sys/conf/newvers.sh | |
parent | 0f96936284a5e8e7b606f8b0f76a61e1bd9b62c8 (diff) | |
download | src-3933c622cd68621a164c8084906fb91c4ea257de.tar.gz src-3933c622cd68621a164c8084906fb91c4ea257de.zip |
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.
Notes
Notes:
svn path=/head/; revision=36283
Diffstat (limited to 'sys/conf/newvers.sh')
-rw-r--r-- | sys/conf/newvers.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 689b1a94c599..6595cb78dcf9 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'` |