From d6432d1f162ba1eacfcca9c1208f07e7a068b121 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 6 Sep 2001 18:39:46 +0000 Subject: [PATCH] Strip non version _number_ bits from HOST_OS_VERSION. Requested by: knu --- usr.sbin/amd/include/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/amd/include/newvers.sh b/usr.sbin/amd/include/newvers.sh index 21f748be2098..b279c90574ce 100644 --- a/usr.sbin/amd/include/newvers.sh +++ b/usr.sbin/amd/include/newvers.sh @@ -24,7 +24,7 @@ cat << __NO_newvers_sh #define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | sed -e 's/\..*$//'`" /* Define only version of host machine (eg. 2.5.1) */ -#define HOST_OS_VERSION "`uname -r`" +#define HOST_OS_VERSION "`uname -r | sed -e 's/[-([:alpha:]].*//'`" __NO_newvers_sh fi