From e21196807afbf2370defced0eff191cb54c46a9b Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 7 Nov 2002 00:22:54 +0000 Subject: Don't try to chmod the distfile if the permissions are already correct. Addresses pkg/18941 by Robert Elz. --- lang/sun-jre13/Makefile.common | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lang/sun-jre13') diff --git a/lang/sun-jre13/Makefile.common b/lang/sun-jre13/Makefile.common index 994f19c6c5e..ec901b62bfc 100644 --- a/lang/sun-jre13/Makefile.common +++ b/lang/sun-jre13/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.9 2002/10/15 14:06:56 jschauma Exp $ +# $NetBSD: Makefile.common,v 1.10 2002/11/07 00:22:54 jlam Exp $ # MASTER_SITES is very special, and must end in "=": CATEGORIES= lang @@ -52,7 +52,9 @@ ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-* .if ${OPSYS} != "Darwin" post-fetch: - @-${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} + @if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ + ${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \ + fi .endif post-build: -- cgit v1.2.3