summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-08-11 20:38:04 +0000
committerhubertf <hubertf@pkgsrc.org>2000-08-11 20:38:04 +0000
commite0fcb9cbea38c6f0b85482795ed23a810116297d (patch)
tree5f0b110648267434cc3d930e03ba387ce4d8f2f8 /mk
parentfa6267800f8935f462470e32e35955ef030d595b (diff)
downloadpkgsrc-e0fcb9cbea38c6f0b85482795ed23a810116297d.tar.gz
When rebuilding a pkg, don't only remove the binary pkg currently
available with the current version, but ALL version. That way, old pkg versions are automatically removed when building new ones.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index 4963e3eefa9..394c1e5bba5 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.bulk-pkg.mk,v 1.6 2000/08/04 03:24:33 hubertf Exp $
+# $Id: bsd.bulk-pkg.mk,v 1.7 2000/08/11 20:38:04 hubertf Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org>
@@ -140,9 +140,9 @@ bulk-package:
if [ -f ${BUILDLOG} ]; then \
${ECHO_MSG} "BULK> Continuing previous build..." ; \
else \
- ${ECHO_MSG} "BULK> Removing old binary package..." ; \
- ${ECHO_MSG} ${RM} -f ${PKGFILE} ; \
- ${DO} ${RM} -f ${PKGFILE} ; \
+ ${ECHO_MSG} "BULK> Removing old binary package(s)..." ; \
+ ${ECHO_MSG} ${RM} -f ${PKGFILE:C/-[^-]*$//}-* ; \
+ ${DO} ${RM} -f ${PKGFILE:C/-[^-]*$//}-* ; \
${ECHO_MSG} "BULK> Full rebuild in progress..." ; \
${ECHO_MSG} ${MAKE} -k clean CLEANDEPENDS=YES ; \
${DO} ${MAKE} -k clean CLEANDEPENDS=YES ; \