From 4e909683e721b5122a58aea36dc9dfd93b685cd2 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Fri, 21 Mar 2003 12:49:58 +0000 Subject: 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. --- mk/scripts/genreadme.awk | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'mk/scripts') 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 = "none"; + } 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 = "none"; + } 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; -- cgit v1.2.3