pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk As the printdepends program takes quite a long...
details: https://anonhg.NetBSD.org/pkgsrc/rev/527c0209d879
branches: trunk
changeset: 502497:527c0209d879
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Nov 05 10:14:43 2005 +0000
description:
As the printdepends program takes quite a long time, every 50 packages a
status line is printed on stderr to get an impression about how the
program gets along.
diffstat:
mk/bulk/printdepends | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r fea0887ae6c3 -r 527c0209d879 mk/bulk/printdepends
--- a/mk/bulk/printdepends Sat Nov 05 09:37:10 2005 +0000
+++ b/mk/bulk/printdepends Sat Nov 05 10:14:43 2005 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: printdepends,v 1.17 2005/05/09 16:03:58 kristerw Exp $
+# $NetBSD: printdepends,v 1.18 2005/11/05 10:14:43 rillig Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%NetBSD.org@localhost>
@@ -78,6 +78,15 @@
# cache the package list for printindex
echo list='"'${list}'"' > .pkglist
+pkgbar=""
+for i in $list; do
+ pkgbar="${pkgbar} a"
+done
+npackages=`echo "$pkgbar" | wc -w`
+npackages=`echo $npackages`
+
+cpackages=0
+cpackages_mod_50=""
for pkgdir in $list
do
if [ ! -d $pkgdir ]; then
@@ -85,9 +94,7 @@
echo $pkgdir | ${SED} 's;/.*;/Makefile;g' > /dev/stderr
echo "but the directory does not exist. Please fix this!" > /dev/stderr
else
- cd $pkgdir
-
- l=`${BMAKE} show-depends-dirs`
+ l=`cd $pkgdir && ${BMAKE} show-depends-dirs`
if [ $? != 0 ]; then
echo "WARNING (printdepends): the package in $pkgdir had problem with" > /dev/stderr
echo " ${BMAKE} show-depends-dirs" > /dev/stderr
@@ -108,5 +115,11 @@
fi
fi
fi
- cd $cwd
+ cpackages_mod_50="${cpackages_mod_50}+";
+ case $cpackages_mod_50 in
+ ++++++++++++++++++++++++++++++++++++++++++++++++++)
+ cpackages_mod_50=""
+ cpackages=`expr $cpackages + 50`
+ echo "${cpackages} of ${npackages} packages finished." 1>&2;;
+ esac
done
Home |
Main Index |
Thread Index |
Old Index