pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Use shell builtins where possible, particularly for...
details: https://anonhg.NetBSD.org/pkgsrc/rev/433806903d27
branches: trunk
changeset: 477201:433806903d27
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Sun Jun 27 22:54:21 2004 +0000
description:
Use shell builtins where possible, particularly for TEST.
Pointed out by Roland Illig on tech-pkg.
diffstat:
mk/defs.Linux.mk | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diffs (42 lines):
diff -r 636378a71a8f -r 433806903d27 mk/defs.Linux.mk
--- a/mk/defs.Linux.mk Sun Jun 27 22:47:38 2004 +0000
+++ b/mk/defs.Linux.mk Sun Jun 27 22:54:21 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.73 2004/06/18 11:22:41 kristerw Exp $
+# $NetBSD: defs.Linux.mk,v 1.74 2004/06/27 22:54:21 jschauma Exp $
#
# Variable definitions for the Linux operating system.
@@ -30,7 +30,7 @@
EGREP?= /usr/bin/egrep
.endif
EXPR?= /usr/bin/expr
-FALSE?= /bin/false
+FALSE?= false # Shell builtin
.if exists(/bin/fgrep)
FGREP?= /bin/fgrep
.elif exists(/usr/bin/fgrep)
@@ -116,20 +116,16 @@
TAIL?= /usr/bin/tail
TAR?= ${LOCALBASE}/bin/tar
TEE?= /usr/bin/tee
-.if exists(/bin/test)
-TEST?= /bin/test
-.else
-TEST?= /usr/bin/test
-.endif
+TEST?= test # Shell builtin
.if exists(/bin/touch)
TOUCH?= /bin/touch
.else
TOUCH?= /usr/bin/touch
.endif
TR?= /usr/bin/tr
-TRUE?= /bin/true
+TRUE?= true # Shell builtin
TSORT?= /usr/bin/tsort
-TYPE?= type
+TYPE?= type # Shell builtin
WC?= /usr/bin/wc
XARGS?= /usr/bin/xargs -r
Home |
Main Index |
Thread Index |
Old Index