diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-05-30 21:35:32 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-05-30 21:35:32 +0000 |
commit | 429d93738e5c713d4018da382aabcfb81c806f9a (patch) | |
tree | c7be3d8981855f807fc52fdc694e16269319e5b7 /mk | |
parent | d1f323a47ec5b2b2907ed1b52a484e77a97cc16e (diff) | |
download | pkgsrc-429d93738e5c713d4018da382aabcfb81c806f9a.tar.gz |
Remove restrictions on category names, and make delete-links
target safer. From OpenBSD.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0e9f849f289..1ee8ebb3870 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.439 2000/05/30 17:25:20 tron Exp $ +# $NetBSD: bsd.pkg.mk,v 1.440 2000/05/30 21:35:32 hubertf Exp $ # # This file is in the public domain. # @@ -854,8 +854,6 @@ EXTRACT_ONLY?= ${DISTFILES} @${FALSE} .endif -# Note this has to start with a capital letter (or more accurately, it -# shouldn't match "[a-z]*"), see the target "delete-package-links" below. PKGREPOSITORYSUBDIR?= All PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR} PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX} @@ -1379,7 +1377,8 @@ package-links: .if !target(delete-package-links) delete-package-links: - ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${PACKAGES}/[a-z]*/${PKGNAME}${PKG_SUFX}; + ${_PKG_SILENT}${_PKG_DEBUG}\ + ${FIND} ${PACKAGES} -type l -name ${PKGNAME}${PKG_SUFX} | xargs ${RM} -f .endif .if !target(delete-package) |