summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-09-06 18:39:46 +0000
committerobrien <obrien@FreeBSD.org>2001-09-06 18:39:46 +0000
commit577f5ce9db1a69484ef385fa44134e5034b2c8d9 (patch)
treed2d39ee693ada9f53f585b39517ae2fc5e65b0b3 /usr.sbin
parenta8e78b194e6f3048f8826ce9f28f64dc411e0a4b (diff)
downloadFreeBSD-src-577f5ce9db1a69484ef385fa44134e5034b2c8d9.zip
FreeBSD-src-577f5ce9db1a69484ef385fa44134e5034b2c8d9.tar.gz
Strip non version _number_ bits from HOST_OS_VERSION.
Requested by: knu
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/amd/include/newvers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/amd/include/newvers.sh b/usr.sbin/amd/include/newvers.sh
index 21f748b..b279c90 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
OpenPOWER on IntegriCloud