From c4e8b7e41ece249a655db67d4914c7222593992b Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 10 Sep 1998 00:27:57 +0000 Subject: [PATCH] I don't want to be the only one to use ``cut''. Use ``sed'' instead. --- Makefile.inc1 | 3 +-- usr.sbin/amd/include/newvers.sh | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index b7abf1cab58..f6dd4cd3d15 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1,5 +1,5 @@ # -# $Id: Makefile.inc1,v 1.10 1998/09/09 19:30:20 markm Exp $ +# $Id: Makefile.inc1,v 1.11 1998/09/10 00:13:48 obrien Exp $ # # Make command line options: # -DCLOBBER will remove /usr/include @@ -807,7 +807,6 @@ build-tools: usr.bin/col \ usr.bin/colldef \ usr.bin/cpp \ - usr.bin/cut \ usr.bin/expand \ usr.bin/file2c \ usr.bin/find \ diff --git a/usr.sbin/amd/include/newvers.sh b/usr.sbin/amd/include/newvers.sh index 42bcc845443..84663f03c49 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`"