Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pkg_install pick the proper uname.



details:   https://anonhg.NetBSD.org/src/rev/867be4c8df12
branches:  trunk
changeset: 475933:867be4c8df12
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Aug 30 04:20:22 1999 +0000

description:
pick the proper uname.

diffstat:

 usr.sbin/pkg_install/Makefile.inc |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r a64825e5f656 -r 867be4c8df12 usr.sbin/pkg_install/Makefile.inc
--- a/usr.sbin/pkg_install/Makefile.inc Mon Aug 30 01:05:08 1999 +0000
+++ b/usr.sbin/pkg_install/Makefile.inc Mon Aug 30 04:20:22 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.9 1999/08/23 10:34:53 agc Exp $
+# $NetBSD: Makefile.inc,v 1.10 1999/08/30 04:20:22 christos Exp $
 # Original from Freebsd, no rcs id.
 
 LIBINSTALL != cd ${.CURDIR}/../lib;\
@@ -6,7 +6,13 @@
 CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"'
 
 .if !defined(OPSYS)
+.if exists(/usr/bin/uname)
 OPSYS!= /usr/bin/uname -s
+.elif exists(/bin/uname)
+OPSYS!= /bin/uname -s
+.else
+OPSYS="unknown"
+.endif
 .endif
 
 .if ${OPSYS} == "NetBSD"



Home | Main Index | Thread Index | Old Index