Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/amd/libamu Make config_local.h more cross-compile s...



details:   https://anonhg.NetBSD.org/src/rev/55bfef64e10d
branches:  trunk
changeset: 499435:55bfef64e10d
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Nov 20 01:56:13 2000 +0000

description:
Make config_local.h more cross-compile safe. Thanks simonb!

diffstat:

 usr.sbin/amd/libamu/Makefile |   4 ++--
 usr.sbin/amd/libamu/mkconf   |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 23032650009b -r 55bfef64e10d usr.sbin/amd/libamu/Makefile
--- a/usr.sbin/amd/libamu/Makefile      Mon Nov 20 01:46:56 2000 +0000
+++ b/usr.sbin/amd/libamu/Makefile      Mon Nov 20 01:56:13 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2000/11/20 00:25:24 wiz Exp $
+#      $NetBSD: Makefile,v 1.12 2000/11/20 01:56:13 wiz Exp $
 
 LIB=   amu
 
@@ -17,7 +17,7 @@
 # XXX: will fail cross compilation
 config_local.h: mkconf
        @rm -f ${.TARGET}
-       sh ${.ALLSRC} > ${.TARGET}
+       sh ${.ALLSRC} `sh ${.CURDIR}/../../../sys/conf/osrelease.sh` > ${.TARGET}
 
 CLEANFILES+=   config_local.h
 
diff -r 23032650009b -r 55bfef64e10d usr.sbin/amd/libamu/mkconf
--- a/usr.sbin/amd/libamu/mkconf        Mon Nov 20 01:46:56 2000 +0000
+++ b/usr.sbin/amd/libamu/mkconf        Mon Nov 20 01:56:13 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mkconf,v 1.1.1.3 2000/11/20 00:16:18 wiz Exp $
+#      $NetBSD: mkconf,v 1.2 2000/11/20 01:56:13 wiz Exp $
 #
 # mkconf
 # Generate local configuration parameters for amd
@@ -8,16 +8,16 @@
 /* Automatically generated file, do not edit! */
  
 /* Define name and version of host machine (eg. solaris2.5.1) */
-#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`"
+#define HOST_OS "netbsd$1"
 
 /* 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 "netbsd`echo $1 | cut -d. -f 1`"
 
 /* Define only version of host machine (eg. 2.5.1) */
-#define HOST_OS_VERSION "`uname -r`"
+#define HOST_OS_VERSION "$1"
 
 /* Define the header version of (linux) hosts (eg. 2.2.10) */
-#define HOST_HEADER_VERSION "`uname -r`"
+#define HOST_HEADER_VERSION "$1"
 
 /* Define name of host */
 #define HOST_NAME "`hostname`"



Home | Main Index | Thread Index | Old Index