summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2015-06-13 12:09:32 +0000
committerspz <spz@pkgsrc.org>2015-06-13 12:09:32 +0000
commit4a29306f61b237c59cc0cd0b6e8d532a6b42b9e9 (patch)
tree7af6b2a131b7307a786f95009feead6483f45347 /mk
parentc673647e1cabe232e5b41b558cc45b80ff3330c6 (diff)
downloadpkgsrc-4a29306f61b237c59cc0cd0b6e8d532a6b42b9e9.tar.gz
Fix
/pub/pkgsrc/current/pkgsrc/mk/scripts/mkreadme: ls: argument list too long
Diffstat (limited to 'mk')
-rwxr-xr-xmk/scripts/mkreadme15
1 files changed, 9 insertions, 6 deletions
diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme
index 40bfe1752cc..02c6bc6ccd7 100755
--- a/mk/scripts/mkreadme
+++ b/mk/scripts/mkreadme
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkreadme,v 1.26 2011/04/22 09:03:53 spz Exp $
+# $NetBSD: mkreadme,v 1.27 2015/06/13 12:09:32 spz Exp $
#
# Script for README.html generation
#
@@ -519,11 +519,14 @@ if [ "x$prune" = "xyes" ]; then
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
+ # cats=`${BMAKE} show-subdir-var VARNAME=SUBDIR` # already set above
+ for c in ${cats} ; do
+ for d in `ls -d ${c}/*` ; 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
done
fi