summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-01-12 22:30:08 +0000
committerjschauma <jschauma@pkgsrc.org>2003-01-12 22:30:08 +0000
commita2843dc815e45a4409a13f679cb27bb9a7f69133 (patch)
tree9298766a590d51fa8297e677b9f529c50f964ccb /mk
parent72ef6241b170b4e381f92099df29e2eae4c6477f (diff)
downloadpkgsrc-a2843dc815e45a4409a13f679cb27bb9a7f69133.tar.gz
efficiency++;
Make can take care of substitutions itself, so we don't need to use echo VAR | sed or echo VAR | tr Suggested by seb.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index f61012e43b8..1358402e0da 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.99 2003/01/12 20:36:58 jschauma Exp $
+# $NetBSD: bsd.prefs.mk,v 1.100 2003/01/12 22:30:08 jschauma Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -29,7 +29,7 @@ MAKEFLAGS+= OPSYS=${OPSYS}
OS_VERSION!= ${UNAME} -r
.endif
.ifndef LOWER_OS_VERSION
-LOWER_OS_VERSION!= echo ${OS_VERSION} | tr A-Z a-z
+LOWER_OS_VERSION:= ${OS_VERSION:tl}
.endif
MAKEFLAGS+= OS_VERSION=${OS_VERSION}
@@ -88,11 +88,11 @@ LOWER_OPSYS?= solaris
.elif ${OPSYS} == "Linux"
LOWER_OPSYS?= linux
-LOWER_ARCH!= echo "${LOWER_ARCH}" | sed -e 's/i.86/i386/'
-MACHINE_ARCH!= echo "${MACHINE_ARCH}" | sed -e 's/i.86/i386/'
+LOWER_ARCH:= ${LOWER_ARCH:C/i.86/i386/}
+MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/}
. if ${MACHINE_ARCH} == "unknown"
. if !defined(LOWER_ARCH)
-LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/'
+LOWER_ARCH!= ${UNAME} -m | sed -e 's/i.86/i386/'
. endif # !defined(LOWER_ARCH)
MACHINE_ARCH= ${LOWER_ARCH}
MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
@@ -115,7 +115,7 @@ LOWER_OPSYS?= irix${OS_VERSION:C/\.[0-9]//}
LOWER_VENDOR?= sgi
.elif !defined(LOWER_OPSYS)
-LOWER_OPSYS!= echo ${OPSYS} | tr A-Z a-z
+LOWER_OPSYS:= ${OPSYS:tl}
.endif
MAKEFLAGS+= LOWER_OPSYS=${LOWER_OPSYS}