diff options
author | dmcmahill <dmcmahill> | 2002-11-14 07:10:05 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2002-11-14 07:10:05 +0000 |
commit | 29ff1399975443c61a1933cd827e265f59f68a23 (patch) | |
tree | 69c4e9b3188cbd2a9f225669b2774ee866e342e9 | |
parent | 66dc01802215fe3f88a0e750a12c19564a2dafca (diff) | |
download | pkgsrc-29ff1399975443c61a1933cd827e265f59f68a23.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.
-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); |