diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-12 13:45:36 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-11-12 13:45:36 +0000 |
commit | 54a10c8ebb66b92bdece566ded400890bc2b4d89 (patch) | |
tree | bcf1826c7094108156b939c7e66b04c323bac784 /mk/bulk | |
parent | e533139410e6b61d37af21c6b189f87924febd85 (diff) | |
download | pkgsrc-54a10c8ebb66b92bdece566ded400890bc2b4d89.tar.gz |
- added progress meter when extracting database. Useful for those of us
with slow machines.
- fix minor bug which left some temp files laying around in /tmp/mkreadme.
Diffstat (limited to 'mk/bulk')
-rwxr-xr-x | mk/bulk/mkreadme | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bulk/mkreadme b/mk/bulk/mkreadme index dae43ad83af..e5b1e8028fc 100755 --- a/mk/bulk/mkreadme +++ b/mk/bulk/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.2 2002/11/12 02:17:58 dmcmahill Exp $ +# $NetBSD: mkreadme,v 1.3 2002/11/12 13:45:36 dmcmahill Exp $ # # Script for README.html generation # @@ -112,6 +112,7 @@ prog=$0 ftp_readme=no restart=no prune=no +DEBUG=no while test -n "$1" @@ -327,6 +328,7 @@ if [ "x$restart" = "xno" ] ; then echo " " echo "Extracting data. This could take a while" echo " " + npkg=1 cd ${PKGSRCDIR} list=`grep '^[[:space:]]*'SUBDIR */Makefile | sed 's,/Makefile.*=[[:space:]]*,/,'` for pkgdir in $list @@ -349,6 +351,12 @@ if [ "x$restart" = "xno" ] ; then echo "$l" >> $DATABASEFILE fi fi + echo -n "." + if [ `expr $npkg % 100 = 0` -eq 1 ]; then + echo " " + echo "$npkg" + fi + npkg=`expr $npkg + 1` cd $PKGSRCDIR done else |