diff options
author | agc <agc@pkgsrc.org> | 1999-03-09 11:14:52 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-03-09 11:14:52 +0000 |
commit | 53c3157512f9bcf121c5e48e73650ec2212010ee (patch) | |
tree | cac255ca1c015e72c60dad0b46cc3246099e40e9 /mk | |
parent | 899fe0892cf860d5c0dfee591a7b016d5f34bf44 (diff) | |
download | pkgsrc-53c3157512f9bcf121c5e48e73650ec2212010ee.tar.gz |
Solaris sh(1) doesn't understand the "if ! command; then..." construct.
So dumb-down the shell commands used: make them into
"command; if [ $? -ne 0 ]; then..."
Suggested by David Brownlee.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 75c64972b40..3f43e0f87fc 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.221 1999/03/08 17:26:54 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.222 1999/03/09 11:14:52 agc Exp $ # # This file is in the public domain. # @@ -621,7 +621,7 @@ DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} PKGNAME?= ${DISTNAME} # Latest version of pkgtools required for this file. -# XXX There's a condiotinal hack for "pkg_delete -O" for +# XXX There's a conditional hack for "pkg_delete -O" for # _PKGTOOLS_VER>=19990302 below which should be backed out if this # is bumped beyond 19990302. - HF PKGTOOLS_REQD= 19990119 @@ -1113,7 +1113,8 @@ do-package: ${PLIST} ${DESCR} ${ECHO_MSG} "===> Building package for ${PKGNAME}"; \ if [ -d ${PACKAGES} ]; then \ if [ ! -d ${PKGREPOSITORY} ]; then \ - if [ ! ${MKDIR} ${PKGREPOSITORY} ]; then \ + ${MKDIR} ${PKGREPOSITORY}; \ + if [ $$? -ne 0 ]; then \ ${ECHO_MSG} ">> Can't create directory ${PKGREPOSITORY}."; \ exit 1; \ fi; \ @@ -1137,7 +1138,8 @@ package-links: ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${.MAKEFLAGS} delete-package-links ${_PKG_SILENT}${_PKG_DEBUG}for cat in ${CATEGORIES}; do \ if [ ! -d ${PACKAGES}/$$cat ]; then \ - if [ ! ${MKDIR} ${PACKAGES}/$$cat ]; then \ + ${MKDIR} ${PACKAGES}/$$cat; \ + if [ $$? -ne 0 ]; then \ ${ECHO_MSG} ">> Can't create directory ${PACKAGES}/$$cat."; \ exit 1; \ fi; \ @@ -1480,8 +1482,9 @@ deinstall: uptodate-pkgtools ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE} .if (${DEINSTALLDEPENDS} != "NO") ${_PKG_SILENT}${_PKG_DEBUG} \ - if ! ${PKG_INFO} -qe ${PKGNAME} ; then \ - ${MAKE} deinstall-depends ; \ + ${PKG_INFO} -qe ${PKGNAME}; \ + if [ $$? -ne 0 ]; then \ + ${MAKE} deinstall-depends; \ fi .endif # DEINSTALLDEPENDS != "NO" .endif # target(deinstall) |