add some output to mark in which part of the script we currently are

This commit is contained in:
Nils Kneuper 2009-02-22 21:22:23 +00:00
parent 8a9e1a2716
commit 1aeefd33b1

View file

@ -186,6 +186,9 @@ trap user_int HUP INT TERM
filelist=$(find -iname "*.png")
# work with a parallized joblist
echo "*************************"
echo "* compressing the files *"
echo "*************************"
for f in $filelist
do
while [ $(jobs -rp | wc -l) -ge $max_number_threads ]
@ -202,6 +205,10 @@ wait
# collect statistics and remove temp files
# this is in a seperate part because the stats would not be correct when
# run with several threads
echo -ne "\n"
echo "********************************************"
echo "* creating statistics and moving files now *"
echo "********************************************"
for f in $filelist
do
get_statistics_and_delete_temp_files $f $opti_nice