SPECS: builder - update get_file progress in statusbar
glen
glen at pld-linux.org
Mon Jan 16 23:25:50 CET 2006
Author: glen Date: Mon Jan 16 22:25:50 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- update get_file progress in statusbar
---- Files affected:
SPECS:
builder (1.369 -> 1.370)
---- Diffs:
================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.369 SPECS/builder:1.370
--- SPECS/builder:1.369 Mon Jan 16 23:20:35 2006
+++ SPECS/builder Mon Jan 16 23:25:44 2006
@@ -298,7 +298,7 @@
local len=${COLUMNS:-80}
local msg=$(echo "$*" | cut -c-$len)
- msg="builder[$SPECFILE] $msg"
+ msg="builder[$SPECFILE] ${SHELL_TITLE_PREFIX:+$SHELL_TITLE_PREFIX }$msg"
case "$TERM" in
cygwin|xterm*)
echo >&2 -ne "\033]1;$msg\007\033]2;$msg\007"
@@ -660,8 +660,12 @@
OPTIONS="$OPTIONS -r $CVSTAG"
fi
fi
+ local nf=$(echo "$GET_FILES" | wc -w)
+ local nc=0
for i in $GET_FILES; do
- update_shell_title "get_files: $i"
+ nc=$((nc + 1))
+ SHELL_TITLE_PREFIX="get_files[$nc/$nf]"
+ update_shell_title "$i"
local fp=`nourl "$i"`
if [ -f "$fp" ] && [ "$SKIP_EXISTING_FILES" = "yes" ]; then
continue
@@ -822,6 +826,7 @@
fi
fi
unset OPTIONS
+ SHELL_TITLE_PREFIX=""
fi
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/builder?r1=1.369&r2=1.370&f=u
More information about the pld-cvs-commit
mailing list