diff options
author | obrien <obrien@FreeBSD.org> | 1998-09-10 00:27:57 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-09-10 00:27:57 +0000 |
commit | 69c1361306a3e8ba1331f54b0aad7deae76848c5 (patch) | |
tree | 3fa8adca8a6ac0769d2278ade47725259cc51d82 /usr.sbin/amd/include/newvers.sh | |
parent | 2d9c16b8eae383c192b2e9742f7e69273c74dcaa (diff) | |
download | FreeBSD-src-69c1361306a3e8ba1331f54b0aad7deae76848c5.zip FreeBSD-src-69c1361306a3e8ba1331f54b0aad7deae76848c5.tar.gz |
I don't want to be the only one to use ``cut''. Use ``sed'' instead.
Diffstat (limited to 'usr.sbin/amd/include/newvers.sh')
-rw-r--r-- | usr.sbin/amd/include/newvers.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/include/newvers.sh b/usr.sbin/amd/include/newvers.sh index 42bcc84..84663f0 100644 --- a/usr.sbin/amd/include/newvers.sh +++ b/usr.sbin/amd/include/newvers.sh @@ -1,5 +1,5 @@ # $NetBSD: mkconf,v 1.1.1.1 1997/07/24 21:20:12 christos Exp $ -# $Id$ +# $Id: newvers.sh,v 1.1 1998/08/27 08:09:41 obrien Exp $ # mkconf # Generate local configuration parameters for amd # @@ -16,7 +16,7 @@ cat << __EOF #define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`" /* Define only name of host machine OS (eg. solaris2) */ -#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | cut -d. -f 1`" +#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`" |