summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2003-03-21 12:49:58 +0000
committerdmcmahill <dmcmahill>2003-03-21 12:49:58 +0000
commitb2caf490bf5a471a0571afd0240cc771b8a90474 (patch)
tree7de8da828382163f98f36746b9d8ddf10ba7651e /mk
parenta74a565449d15c1efbda8070de038f095bf7495a (diff)
downloadpkgsrc-b2caf490bf5a471a0571afd0240cc771b8a90474.tar.gz
when there are no build depends, indicate this with "none" instead of
having an empty list. Do the same for run depends. Suggested by Christian Hattemer in a private email.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/scripts/genreadme.awk14
1 files changed, 11 insertions, 3 deletions
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk
index 79ba1f1e8d3..a8d2e866558 100755
--- a/mk/scripts/genreadme.awk
+++ b/mk/scripts/genreadme.awk
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.8 2003/03/19 20:46:55 dmcmahill Exp $
+# $NetBSD: genreadme.awk,v 1.9 2003/03/21 12:49:58 dmcmahill Exp $
#
# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -306,6 +306,9 @@ END {
readme_name, nm);
i = i + 1;
}
+ if ( htmldeps == "" ) {
+ htmldeps = "<EM>none</EM>";
+ }
if (debug) printf("htmldeps = \"%s\"\n", htmldeps);
vul = "";
@@ -407,6 +410,12 @@ END {
if (debug) printf("binary packages: \n%s\n\n",
binpkgs);
+
+ if ( flatdepends[toppkg] ~ /^[ \t]*$/ ) {
+ rundeps = "<EM>none</EM>";
+ } else {
+ rundeps = flatdepends[toppkg];
+ }
while((getline < templatefile) > 0){
gsub(/%%PORT%%/, toppkg);
@@ -427,8 +436,7 @@ END {
gsub(/%%VULNERABILITIES%%/, ""vul"");
gsub(/%%VULDATE%%/, ""vuldate"");
gsub(/%%BUILD_DEPENDS%%/, ""htmldeps"");
- gsub(/%%RUN_DEPENDS%%/,
- ""flatdepends[toppkg]"");
+ gsub(/%%RUN_DEPENDS%%/, ""rundeps"");
gsub(/%%BIN_PKGS%%/, ""binpkgs"");
gsub(/README.html/, readme_name);
print >> readme;