summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>2000-06-04 04:35:13 +0000
committermycroft <mycroft@pkgsrc.org>2000-06-04 04:35:13 +0000
commitc348879256348b40ba3dc557901c400997c560c2 (patch)
treed80b4f558919124af25d043c13396ae8a0c2da0b /mk
parent9b2b5a01b572378c91e7deef4ee5c9274d3c0d54 (diff)
downloadpkgsrc-c348879256348b40ba3dc557901c400997c560c2.tar.gz
Eliminate the sort and tail when determining PKGTOOLS_VERSION.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 7c67122de3e..26017194cb0 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.473 2000/06/04 03:08:37 mycroft Exp $
+# $NetBSD: bsd.pkg.mk,v 1.474 2000/06/04 04:35:13 mycroft Exp $
#
# This file is in the public domain.
#
@@ -589,7 +589,7 @@ PKG_INFO?= ${PKG_TOOLS_BIN}/pkg_info
.if !exists(${IDENT})
PKGTOOLS_VERSION=${PKGTOOLS_REQD}
.else
-PKGTOOLS_VERSION!= ${IDENT} ${PKG_CREATE} ${PKG_DELETE} ${PKG_INFO} ${PKG_ADD} | ${AWK} '$$1 ~ /\$$NetBSD/ && $$2 !~ /^crt0/ { gsub("/", "", $$4); print $$4 }' | sort | ${TAIL} -n 1
+PKGTOOLS_VERSION!=${IDENT} ${PKG_CREATE} ${PKG_DELETE} ${PKG_INFO} ${PKG_ADD} | ${AWK} 'BEGIN {n = 0;}; $$1 ~ /\$$NetBSD/ && $$2 !~ /^crt0/ {gsub("/", "", $$4); if ($$4 > n) {n = $$4;}}; END {print n;}'
.endif
.endif
MAKEFLAGS+= PKGTOOLS_VERSION="${PKGTOOLS_VERSION}"