diff options
-rw-r--r-- | lang/sun-jre13/Makefile.common | 6 | ||||
-rw-r--r-- | lang/sun-jre14/Makefile.common | 6 |
2 files changed, 8 insertions, 4 deletions
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: diff --git a/lang/sun-jre14/Makefile.common b/lang/sun-jre14/Makefile.common index 9cdfbe5948c..2a625ee6349 100644 --- a/lang/sun-jre14/Makefile.common +++ b/lang/sun-jre14/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.5 2002/10/15 14:06:56 jschauma Exp $ +# $NetBSD: Makefile.common,v 1.6 2002/11/07 00:22:54 jlam Exp $ CATEGORIES= lang EXTRACT_SUFX= .bin @@ -35,7 +35,9 @@ ONLY_FOR_PLATFORM= NetBSD-1.5Z[A-Z]-i386 NetBSD-1.[6-9]*-i386 ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86 post-fetch: - @${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} + @if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ + ${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \ + fi do-install: ${INSTALL_PROGRAM_DIR} ${PREFIX} |