diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-16 02:15:15 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-16 02:15:15 +0000 |
commit | 9c4f6cfe7fa19a7a159d3568c6178352b870b923 (patch) | |
tree | 97c1be96d7f6109f34ea18ee77e70aa6a86b32e2 | |
parent | 2038f8cbc9651ed788e92469c0f1dd2072b45de7 (diff) | |
download | pkgsrc-9c4f6cfe7fa19a7a159d3568c6178352b870b923.tar.gz |
- When listing the current version of the package, don't create a hyperlink
back to the current page, just list it as regular text.
- Put each dependency hyperlink on a separate line in the README.html file.
These were both noted by Thomas Klausner in a private email.
-rwxr-xr-x | mk/bulk/genreadme.awk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/bulk/genreadme.awk b/mk/bulk/genreadme.awk index 42fa0bb3255..beac9d223d6 100755 --- a/mk/bulk/genreadme.awk +++ b/mk/bulk/genreadme.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: genreadme.awk,v 1.4 2002/11/14 07:10:05 dmcmahill Exp $ +# $NetBSD: genreadme.awk,v 1.5 2002/11/16 02:15:15 dmcmahill Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -283,7 +283,8 @@ END { gsub(/&/,"\\\\\\&",nm); gsub(/</,"\\\\\\<",nm); gsub(/>/,"\\\\\\>",nm); - htmldeps=htmldeps " <a href=\"../../" pat2dir[dpkgs[i]] "/"readme_name"\">" nm "</a>"; + htmldeps=sprintf("%s<a href=\"../../%s/%s\">%s</a>\n", + htmldeps,pat2dir[dpkgs[i]],readme_name,nm); i=i+1; } if(debug) printf("htmldeps = \"%s\"\n",htmldeps); @@ -362,7 +363,7 @@ END { while((getline < templatefile) > 0){ gsub(/%%PORT%%/,toppkg); - gsub(/%%PKG%%/,dir2htmlname[toppkg]); + gsub(/%%PKG%%/,pkgdir2name[toppkg]); gsub(/%%COMMENT%%/,comment[toppkg]); if(homepage[toppkg] == "") { gsub(/%%HOMEPAGE%%/,""); |