summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-30 18:06:17 +0000
committerjlam <jlam@pkgsrc.org>2006-03-30 18:06:17 +0000
commitd71a98aa8eb185cc8c26f46f2502a25cb3135389 (patch)
treea4e8c404ab7153a9727f5d7f913a25bdd6b97971 /sysutils
parent3987a638118f7f4cad35ee461afa830350d86564 (diff)
downloadpkgsrc-d71a98aa8eb185cc8c26f46f2502a25cb3135389.tar.gz
Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by find-files.mk is "__nonexistent__" or not.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/fam/builtin.mk4
-rw-r--r--sysutils/file/builtin.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/fam/builtin.mk b/sysutils/fam/builtin.mk
index d3c0f824bb4..9585aed69f6 100644
--- a/sysutils/fam/builtin.mk
+++ b/sysutils/fam/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2005/06/01 18:03:21 jlam Exp $
+# $NetBSD: builtin.mk,v 1.3 2006/03/30 18:06:18 jlam Exp $
BUILTIN_PKG:= fam
@@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_FAM= /usr/include/fam.h
###
.if !defined(IS_BUILTIN.fam)
IS_BUILTIN.fam= no
-. if empty(H_FAM:M${LOCALBASE}/*) && exists(${H_FAM})
+. if empty(H_FAM:M__nonexistent__) && empty(H_FAM:M${LOCALBASE}/*)
IS_BUILTIN.fam= yes
. endif
.endif
diff --git a/sysutils/file/builtin.mk b/sysutils/file/builtin.mk
index c603a25faec..bcf7e0ce9c5 100644
--- a/sysutils/file/builtin.mk
+++ b/sysutils/file/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2005/06/01 18:03:21 jlam Exp $
+# $NetBSD: builtin.mk,v 1.3 2006/03/30 18:06:18 jlam Exp $
BUILTIN_PKG:= file
@@ -14,7 +14,7 @@ BUILTIN_FIND_GREP.H_FILE= magic_file
###
.if !defined(IS_BUILTIN.file)
IS_BUILTIN.file= no
-. if empty(H_FILE:M${LOCALBASE}/*) && exists(${H_FILE})
+. if empty(H_FILE:M__nonexistent__) && empty(H_FILE:M${LOCALBASE}/*)
IS_BUILTIN.file= yes
. endif
.endif