Masato Taruishi
taru****@sourc*****
2004年 6月 15日 (火) 13:36:55 JST
=================================================================== RCS file: ultrapossum/modules.in,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- ultrapossum/modules.in 2004/06/01 05:08:14 1.35 +++ ultrapossum/modules.in 2004/06/15 04:36:55 1.36 @@ -28,6 +28,19 @@ done ) } +progress() { + if test "$old_progstr" != ""; then + echo -ne "\r" 1>&2 + fi + echo -n "$@" 1>&2 + if echo "$@" | egrep 'done$' > /dev/null; then + echo "" 1>&2 + old_progstr="" + else + old_progstr="$@" + fi +} + verbose() { if test "x$VERBOSE" != "x"; then echo "$@" 1>&2