diff options
author | abs <abs@pkgsrc.org> | 1999-05-12 05:35:55 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 1999-05-12 05:35:55 +0000 |
commit | 2fc6297204c1e51a80cdc4f06b20212e814d45fc (patch) | |
tree | a87ef33cbe2e145134b7135585a76f8a82e5e8f0 /mk | |
parent | 8e0a040624766eaa37699301b85561786bc13b33 (diff) | |
download | pkgsrc-2fc6297204c1e51a80cdc4f06b20212e814d45fc.tar.gz |
If ${PACKAGES} does not exist, use it anyway. Allows settinsg such as
PACKAGES=${PKGSRCDIR}/packages/${OS_VERSION}/${MACHINE_ARCH} _without_
having to ensure each ${OS_VERSION}/${MACHINE_ARCH} is manually created
beforehand.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index de04894e8be..51c3da18383 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.264 1999/05/04 22:44:10 tron Exp $ +# $NetBSD: bsd.pkg.mk,v 1.265 1999/05/12 05:35:55 abs Exp $ # # This file is in the public domain. # @@ -723,11 +723,7 @@ EXTRACT_ONLY?= ${DISTFILES} # shouldn't match "[a-z]*"), see the target "delete-package-links" below. PKGREPOSITORYSUBDIR?= All PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR} -.if exists(${PACKAGES}) PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX} -.else -PKGFILE?= ${PKGNAME}${PKG_SUFX} -.endif CONFIGURE_SCRIPT?= configure CONFIGURE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin @@ -1143,19 +1139,15 @@ do-install: do-package: ${PLIST} ${DESCR} ${_PKG_SILENT}${_PKG_DEBUG}if ${TEST} -e ${PLIST}; then \ ${ECHO_MSG} "===> Building package for ${PKGNAME}"; \ - if [ -d ${PACKAGES} ]; then \ - if [ ! -d ${PKGREPOSITORY} ]; then \ - ${MKDIR} ${PKGREPOSITORY}; \ - if [ $$? -ne 0 ]; then \ - ${ECHO_MSG} ">> Can't create directory ${PKGREPOSITORY}."; \ - exit 1; \ - fi; \ + if [ ! -d ${PKGREPOSITORY} ]; then \ + ${MKDIR} ${PKGREPOSITORY}; \ + if [ $$? -ne 0 ]; then \ + ${ECHO_MSG} ">> Can't create directory ${PKGREPOSITORY}."; \ + exit 1; \ fi; \ fi; \ if ${PKG_CREATE} ${PKG_ARGS} ${PKGFILE}; then \ - if [ -d ${PACKAGES} ]; then \ - ${MAKE} ${.MAKEFLAGS} package-links; \ - fi; \ + ${MAKE} ${.MAKEFLAGS} package-links; \ else \ ${MAKE} ${.MAKEFLAGS} delete-package; \ exit 1; \ |