pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/platform Mac OS X's Leopard "/bin/sh" doesn't suppo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a63f90921db
branches:  trunk
changeset: 536503:3a63f90921db
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Dec 16 12:27:28 2007 +0000

description:
Mac OS X's Leopard "/bin/sh" doesn't support "echo -n" (apparently by
purpose because if it is invoked as "/bin/bash" it does). Use
"/bin/echo -n" instead.

diffstat:

 mk/platform/Darwin.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r de700310751a -r 3a63f90921db mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Sun Dec 16 12:05:46 2007 +0000
+++ b/mk/platform/Darwin.mk     Sun Dec 16 12:27:28 2007 +0000
@@ -1,11 +1,15 @@
-# $NetBSD: Darwin.mk,v 1.26 2007/10/19 13:41:35 rillig Exp $
+# $NetBSD: Darwin.mk,v 1.27 2007/12/16 12:27:28 tron Exp $
 #
 # Variable definitions for the Darwin operating system.
 
 .if !defined(CPP) || ${CPP} == "cpp"
 CPP=           ${CC} -E ${CPP_PRECOMP_FLAGS}
 .endif
+.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-i386)
+ECHO_N?=       /bin/echo -n
+.else
 ECHO_N?=       ${ECHO} -n
+.endif
 LDD?=          /usr/bin/otool -L
 IMAKE_MAKE?=   ${MAKE}         # program which gets invoked by imake
 PKGLOCALEDIR?= share



Home | Main Index | Thread Index | Old Index