diff options
author | mycroft <mycroft> | 2000-06-04 04:35:13 +0000 |
---|---|---|
committer | mycroft <mycroft> | 2000-06-04 04:35:13 +0000 |
commit | ae6cf6750b1a2ad7fa2ddebd8a6da0fe23ad906b (patch) | |
tree | d80b4f558919124af25d043c13396ae8a0c2da0b /mk/bsd.pkg.mk | |
parent | 1511cb2c7b538e4e08579fce6a093f05f2791ee8 (diff) | |
download | pkgsrc-ae6cf6750b1a2ad7fa2ddebd8a6da0fe23ad906b.tar.gz |
Eliminate the sort and tail when determining PKGTOOLS_VERSION.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
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}" |