diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2003-03-21 12:49:58 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2003-03-21 12:49:58 +0000 |
commit | 4e909683e721b5122a58aea36dc9dfd93b685cd2 (patch) | |
tree | 7de8da828382163f98f36746b9d8ddf10ba7651e /mk | |
parent | af9c6f9be8e5352f243b8b806bea85cd17801b9a (diff) | |
download | pkgsrc-4e909683e721b5122a58aea36dc9dfd93b685cd2.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-x | mk/scripts/genreadme.awk | 14 |
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; |