summaryrefslogtreecommitdiff
path: root/package/depmaker
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-20 14:52:58 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-20 17:37:01 +0100
commit77a222d5094d902128d355685501c7b30c8cccca (patch)
treeb7c1df43344d05c69cbaeb87cb29cf5b1128585a /package/depmaker
parent82b3f66f50f608723a2d388bf933ec08a0fefda4 (diff)
Pimp up the progress bar
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'package/depmaker')
-rw-r--r--package/depmaker6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/depmaker b/package/depmaker
index 43d4327eb..edbacc6f1 100644
--- a/package/depmaker
+++ b/package/depmaker
@@ -5,9 +5,13 @@ if gmake --help >/dev/null 2>&1; then
else
export GMAKE=make
fi
+(( x_cols = (COLUMNS > 10) ? COLUMNS - 2 : 80 ))
+typeset -L$x_cols pbar
for dn in */Makefile; do
dn=${dn%/*}
+ pbar="$dn ..."
+ print -nu2 "$pbar\r"
case $dn {
(@(?(e)g|uc|)libc|libpthread|uclibc++) ;;
(*)
@@ -27,3 +31,5 @@ for dn in */Makefile; do
done
print -r -- $x
done >Depends.mk
+pbar=done
+print -u2 "$pbar"