diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-14 07:10:05 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-14 07:10:05 +0000 |
commit | 24b3feedecf22fb7e0113702308aede841708207 (patch) | |
tree | 69c4e9b3188cbd2a9f225669b2774ee866e342e9 /mk | |
parent | 4deadf0dc75759021186137830410e84f2802502 (diff) | |
download | pkgsrc-24b3feedecf22fb7e0113702308aede841708207.tar.gz |
add a 'SINGLEPKG' variable which can be set on the command line to the
directory of a single package (e.g. graphics/gimp) for which a README.html
is to be generated. This provides the required hook to be able to use this
script to generate a README.html file for a single package as well as
for all packages.
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/bulk/genreadme.awk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mk/bulk/genreadme.awk b/mk/bulk/genreadme.awk index de23447ef99..42fa0bb3255 100755 --- a/mk/bulk/genreadme.awk +++ b/mk/bulk/genreadme.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: genreadme.awk,v 1.3 2002/11/13 15:08:29 dmcmahill Exp $ +# $NetBSD: genreadme.awk,v 1.4 2002/11/14 07:10:05 dmcmahill Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -246,6 +246,12 @@ END { close(cmd); fflush("/dev/stdout"); + if(SINGLEPKG != "" ) { + printf("Only creating README for %s\n",SINGLEPKG); + delete topdepends; + topdepends[SINGLEPKG]="yes"; + } + printf("Generating README.html files\n"); fflush("/dev/stdout"); pkgcnt=0; @@ -387,8 +393,12 @@ END { } } printf("\n"); - } + } # if(do_pkg_readme) printf("\n"); + if(SINGLEPKG != "" ) { + close("/dev/stderr"); + exit 0; + } printf("Generating category readmes\n"); templatefile=PKGSRCDIR "/templates/README.category"; fatal_check_file(templatefile); |