get the release version from <sys/param.h>, so that it won't be necessary
to change two places on version bump
This commit is contained in:
parent
d1486d51cb
commit
4e1d4165e5
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: osrelease.sh,v 1.106 2003/09/16 12:08:23 christos Exp $
|
||||
# $NetBSD: osrelease.sh,v 1.107 2003/10/04 06:59:56 jdolecek Exp $
|
||||
#
|
||||
# Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
@ -38,11 +38,12 @@
|
||||
#
|
||||
|
||||
# Release number to use.
|
||||
# If you change this, also check:
|
||||
# sys/sys/param.h: __NetBSD_Version__
|
||||
# share/tmac/doc-common: ds oS
|
||||
#
|
||||
release=1.6ZC
|
||||
# We use the number specified in <sys/param.h>
|
||||
|
||||
AWK=${AWK:-awk}
|
||||
GREP=${GREP:-grep}
|
||||
PARAMH="`dirname $0`"/../sys/param.h
|
||||
release=`$AWK '/^#define[ ]*__NetBSD_Version__/ { print $6 }' $PARAMH`
|
||||
|
||||
case $1 in
|
||||
-s)
|
||||
|
Loading…
Reference in New Issue
Block a user