pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Save a fork() by not invoking the 'tr' utility.
details: https://anonhg.NetBSD.org/pkgsrc/rev/60df40d441e8
branches: trunk
changeset: 527960:60df40d441e8
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Apr 17 10:48:29 2007 +0000
description:
Save a fork() by not invoking the 'tr' utility.
XXX: the OS_VERSION stuff could use a similar cleanup, replacing
tr A-Z a-z occurences with the make :tl modifier.
diffstat:
mk/bsd.prefs.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9932148308a3 -r 60df40d441e8 mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk Tue Apr 17 10:35:17 2007 +0000
+++ b/mk/bsd.prefs.mk Tue Apr 17 10:48:29 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.247 2007/04/14 14:17:49 tnn Exp $
+# $NetBSD: bsd.prefs.mk,v 1.248 2007/04/17 10:48:29 tnn Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -56,7 +56,7 @@
.endif
.if !defined(OPSYS)
-OPSYS!= ${UNAME} -s | tr -d /-
+OPSYS= ${:!${UNAME} -s!:S/-//g:S/\///g}
MAKEFLAGS+= OPSYS=${OPSYS:Q}
.endif
Home |
Main Index |
Thread Index |
Old Index