diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-13 15:12:17 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-13 15:12:17 +0000 |
commit | 0204d6ca73c49e3fe59065ec91fe53da0c8c0d22 (patch) | |
tree | ed88fdfa3fc020218c64bce32ed589a2b5f99369 /mk/bulk | |
parent | 218cd311ece69803286b3110a817432863728277 (diff) | |
download | pkgsrc-0204d6ca73c49e3fe59065ec91fe53da0c8c0d22.tar.gz |
move the pruning of readme's to the very end of the job.
Diffstat (limited to 'mk/bulk')
-rwxr-xr-x | mk/bulk/mkreadme | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/mk/bulk/mkreadme b/mk/bulk/mkreadme index ab4facc9981..3a55a73acf2 100755 --- a/mk/bulk/mkreadme +++ b/mk/bulk/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.6 2002/11/13 11:12:04 dmcmahill Exp $ +# $NetBSD: mkreadme,v 1.7 2002/11/13 15:12:17 dmcmahill Exp $ # # Script for README.html generation # @@ -379,24 +379,6 @@ fi ###################################################################### # -# Prune README.html files which are no longer needed -# -###################################################################### -if [ "x$prune" = "xyes" ]; then - echo " " - echo "Pruning unused README.html files" - echo " " - cd ${PKGSRCDIR} - for d in `ls -d */*` ; do - if [ -d $d -a ! -f ${d}/Makefile -a -f ${d}/README.html ]; then - echo "Pruning ${d}/README.html which is no longer used" - rm -f ${d}/README.html - fi - done -fi - -###################################################################### -# # Generate the package and category README.html files # ###################################################################### @@ -460,6 +442,29 @@ else echo "README-IPv6.html is unchanged (no changes were needed)" fi +###################################################################### +# +# Prune README.html files which are no longer needed +# +###################################################################### +if [ "x$prune" = "xyes" ]; then + echo " " + echo "Pruning unused README.html files" + echo " " + cd ${PKGSRCDIR} + for d in `ls -d */*` ; do + if [ -d $d -a ! -f ${d}/Makefile -a -f ${d}/README.html ]; then + echo "Pruning ${d}/README.html which is no longer used" + rm -f ${d}/README.html + fi + done +fi + +###################################################################### +# +# All done. Clean (if needed) and exit +# +###################################################################### echo " " echo "README.html generation finished: `date`" echo " " |