pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Replace [ $A -nt $B ] with a portable equivalent



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8297ba449796
branches:  trunk
changeset: 460131:8297ba449796
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 21 16:24:31 2003 +0000

description:
Replace [ $A -nt $B ] with a portable equivalent

diffstat:

 mk/bulk/bsd.bulk-pkg.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a587fe032fea -r 8297ba449796 mk/bulk/bsd.bulk-pkg.mk
--- a/mk/bulk/bsd.bulk-pkg.mk   Thu Aug 21 16:16:46 2003 +0000
+++ b/mk/bulk/bsd.bulk-pkg.mk   Thu Aug 21 16:24:31 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.bulk-pkg.mk,v 1.47 2003/08/08 08:51:01 grant Exp $
+#      $NetBSD: bsd.bulk-pkg.mk,v 1.48 2003/08/21 16:24:31 gavan Exp $
 
 #
 # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%netbsd.org@localhost>
@@ -170,7 +170,7 @@
                        if [ -z "$$pkg" ]; then \
                                ${ECHO_MSG} >&2 "BULK> Required binary package $$dep does not exist, rebuilding... " ; \
                                uptodate=0 ; \
-                       elif [ "$$pkg" -nt "${REF}" ]; then \
+                       elif [ -n "$$(find \"$$pkg\" -prune -newer \"${REF}\")" ]; then \
                                ${ECHO_MSG} >&2 "BULK> Required binary package $$dep (`basename $$pkg`) is newer, rebuilding... " ; \
                                uptodate=0 ; \
                        else \



Home | Main Index | Thread Index | Old Index