summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-09-15 17:28:34 +0000
committeragc <agc@pkgsrc.org>1998-09-15 17:28:34 +0000
commit5d76d7d8c7f0c4956bd3d19568cab5b8359207db (patch)
tree768e193aeac02bde235620b9b3e901b9b7c35f03 /mk
parentaaf5955178c6caf930db329731cd58dd4a22ed82 (diff)
downloadpkgsrc-5d76d7d8c7f0c4956bd3d19568cab5b8359207db.tar.gz
Eliminate redundant code - never need to create a symlink called
${WRKDIR} if WRKOBJDIR is set.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk11
1 files changed, 1 insertions, 10 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 3bd03afcea6..a8adf4319bf 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.161 1998/09/15 17:05:08 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.162 1998/09/15 17:28:34 agc Exp $
#
# This file is in the public domain.
#
@@ -836,18 +836,9 @@ mirror-distfiles:
.if !target(do-extract)
do-extract:
.ifndef NO_WRKDIR
-.ifdef WRKOBJDIR
- @${RM} -rf ${WRKOBJDIR}/${PKGSRC_SUBDIR}/${WRKDIR_BASENAME}
- @${MKDIR} -p ${WRKOBJDIR}/${PKGSRC_SUBDIR}/${WRKDIR_BASENAME}
- @if [ ${WRKDIR} != ${WRKOBJDIR}/${PKGSRC_SUBDIR}/${WRKDIR_BASENAME} ]; then \
- ${ECHO} "${WRKDIR} -> ${WRKOBJDIR}/${PKGSRC_SUBDIR}/${WRKDIR_BASENAME}"; \
- @${LN} -sf ${WRKOBJDIR}/${PKGSRC_SUBDIR}/${WRKDIR_BASENAME} ${WRKDIR}; \
- fi
-.else
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
.endif
-.endif
@for file in ${EXTRACT_ONLY}; do \
if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
then \