summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2002-11-16 02:15:15 +0000
committerdmcmahill <dmcmahill>2002-11-16 02:15:15 +0000
commit67c27c5b20f4c5c8fbeb562194e08eb7eaa12bc6 (patch)
tree97c1be96d7f6109f34ea18ee77e70aa6a86b32e2 /mk/bulk
parent19421893f89ed43f8f3a9f3d0b3636c734a8fd45 (diff)
downloadpkgsrc-67c27c5b20f4c5c8fbeb562194e08eb7eaa12bc6.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.
Diffstat (limited to 'mk/bulk')
-rwxr-xr-xmk/bulk/genreadme.awk7
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(/&/,"\\\\\\&amp;",nm);
gsub(/</,"\\\\\\&lt;",nm);
gsub(/>/,"\\\\\\&gt;",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%%/,"");