pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/configure Replaced "test -f" with "ls". That way, b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8d1b4d49a17
branches:  trunk
changeset: 519546:d8d1b4d49a17
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Oct 05 02:59:54 2006 +0000

description:
Replaced "test -f" with "ls". That way, broken symbolic links are also
replaced with the pkgsrc versions of libtool, config.guess and others.

diffstat:

 mk/configure/config-override.mk  |  4 ++--
 mk/configure/libtool-override.mk |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 20591dab419f -r d8d1b4d49a17 mk/configure/config-override.mk
--- a/mk/configure/config-override.mk   Thu Oct 05 02:58:28 2006 +0000
+++ b/mk/configure/config-override.mk   Thu Oct 05 02:59:54 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: config-override.mk,v 1.2 2006/07/06 13:25:57 jlam Exp $
+# $NetBSD: config-override.mk,v 1.3 2006/10/05 02:59:54 rillig Exp $
 
 ######################################################################
 ### config-{guess,sub,rpath}-override (PRIVATE)
@@ -42,7 +42,7 @@
        depth=0; pattern=config.${_sub_};                               \
        while ${TEST} $$depth -le ${OVERRIDE_DIRDEPTH.config-${_sub_}}; do \
                for file in $$pattern; do                               \
-                       ${TEST} -f "$$file" || continue;                \
+                       ${LS} "$$file" 1>/dev/null 2>&1 || continue;    \
                        ${_SCRIPT.${.TARGET}};                          \
                done;                                                   \
                depth=`${EXPR} $$depth + 1`; pattern="*/$$pattern";     \
diff -r 20591dab419f -r d8d1b4d49a17 mk/configure/libtool-override.mk
--- a/mk/configure/libtool-override.mk  Thu Oct 05 02:58:28 2006 +0000
+++ b/mk/configure/libtool-override.mk  Thu Oct 05 02:59:54 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: libtool-override.mk,v 1.6 2006/07/19 22:07:13 jlam Exp $
+# $NetBSD: libtool-override.mk,v 1.7 2006/10/05 02:59:54 rillig Exp $
 
 ######################################################################
 ### {libtool,shlibtool}-override (PRIVATE)
@@ -43,7 +43,7 @@
        depth=0; pattern=libtool;                                       \
        while ${TEST} $$depth -le ${OVERRIDE_DIRDEPTH.libtool}; do      \
                for file in $$pattern; do                               \
-                       ${TEST} -f "$$file" || continue;                \
+                       ${LS} "$$file" 1>/dev/null 2>&1 || continue;    \
                        ${_SCRIPT.${.TARGET}};                          \
                done;                                                   \
                depth=`${EXPR} $$depth + 1`; pattern="*/$$pattern";     \



Home | Main Index | Thread Index | Old Index