diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-07-02 00:11:22 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-07-02 00:11:22 +0000 |
commit | ca5f571fbae3b91058e539c45c380d6d4730fd23 (patch) | |
tree | 497910d5e435de5d20323510af9e4d35efc06e23 /mk | |
parent | b26d420a43483b3990630e8b077e0f553d56e55f (diff) | |
download | pkgsrc-ca5f571fbae3b91058e539c45c380d6d4730fd23.tar.gz |
Include "old" binary packages in README.html.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 8b07fac1eca..4e5aae9e15c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.287 1999/07/01 14:33:36 mrg Exp $ +# $NetBSD: bsd.pkg.mk,v 1.288 1999/07/02 00:11:22 hubertf Exp $ # # This file is in the public domain. # @@ -1877,30 +1877,43 @@ binpkg-list: @cd ${PACKAGES}; \ case `/bin/pwd` in \ */pkgsrc/packages) \ - if [ -f ${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ]; then \ - ${ECHO} "<li> ${MACHINE_ARCH} (${OPSYS} <a href=\"${PKG_URL}/${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX}\"> ${OS_VERSION} </a>)"; \ - fi \ + for pkg in ${PKGREPOSITORYSUBDIR}/${PKGNAME:C/-[^-]*$/-[0-9]*/}${PKG_SUFX} ; \ + do \ + if [ -f "$$pkg" ] ; then \ + ${ECHO} "<TR><TD> ${MACHINE_ARCH}: <TD><a href=\"${PKG_URL}/$pkg\"> <TD>(${OPSYS} ${OS_VERSION}) </a>)"; \ + fi ; \ + done ; \ ;; \ *) \ cd ${PACKAGES}/../..; \ - for i in [1-9].*/*; do \ - if [ -f $$i/${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ]; then \ - ${ECHO} $$i; \ - fi ; \ + for i in [1-9].*/*; do ( \ + cd $$i/${PKGREPOSITORYSUBDIR} ; \ + for j in ${PKGNAME:C/-[^-]*$/-[0-9]*/}${PKG_SUFX} ; \ + do \ + if [ -f "$$j" ] ; then \ + ${ECHO} $$i/$$j; \ + fi ; \ + done ) ; \ done | ${AWK} -F/ ' \ { \ release = $$1; \ arch = $$2; \ + pkg = $$3; \ + gsub("\.tgz","", pkg); \ if (arch != "m68k") { \ if (arch in urls) \ - urls[arch] = "<a href=\"${PKG_URL}/" release "/" arch "/${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX}\">" release "</a>, " urls[arch]; \ + urls[arch "/" pkg "/" release] = "<a href=\"${PKG_URL}/" release "/" arch "/${PKGREPOSITORYSUBDIR}/" pkg "${PKG_SUFX}\">" pkg "</a>, " urls[arch]; \ else \ - urls[arch] = "<a href=\"${PKG_URL}/" release "/" arch "/${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX}\">" release "</a> "; \ + urls[arch "/" pkg "/" release] = "<a href=\"${PKG_URL}/" release "/" arch "/${PKGREPOSITORYSUBDIR}/" pkg "${PKG_SUFX}\">" pkg "</a> "; \ } \ } \ END { \ - for (arch in urls) { \ - print "<li> " arch " (NetBSD " urls[arch] ")"; \ + for (av in urls) { \ + split(av, ava, "/"); \ + arch=ava[1]; \ + pkg=ava[2]; \ + release=ava[3]; \ + print "<TR><TD><LI> " arch ": <TD>" urls[av] " <TD>(${OPSYS} " release ")"; \ } \ } ' \ ;; \ |