Skip to content

Commit

Permalink
print -> echo
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jan 25, 2013
1 parent 504f942 commit 9d39fe1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions image_optim.sh
Expand Up @@ -72,11 +72,11 @@ fi

jpeg_remove_comment_and_exiv()
{
print "Removing comments and exiv data from jpegs."
echo "Removing comments and exiv data from jpegs."
timestart
git ls-files | grep -e "\.jpg$" -e "\.jpeg" | xargs -P ${cpucores} -n 1 jpegoptim --strip-all >> /tmp/image_optim_jpeg.log
timeend
print "$TD"
echo "$TD"
}


Expand All @@ -88,12 +88,12 @@ fi
png_optimize_all()
{
if [ ! -z "${filelist}" ] ; then
print "starting to optimize pngs"
echo "starting to optimize pngs"
LOGFILE="/tmp/image_optim_png.log"

while [ "${filelist}" != "" ] ; do
numberoffiles=$(echo ${filelist} | wc -w)
print "starting to optimize ${numberoffiles} pngs."
echo "starting to optimize ${numberoffiles} pngs."
timestart
echo ${filelist} | xargs -P ${cpucores} -n 1 optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 |& grep "\ Processing" >> "${LOGFILE}"
echo ${filelist} | xargs -P ${cpucores} -n 1 advpng -z4 >> "${LOGFILE}"
Expand All @@ -116,7 +116,7 @@ png_optimize_all()
filelist=${newfilelist}

timeend
print "a run optimizing pngs took $TD"
echo "a run optimizing pngs took $TD"
done
git_commit
filelist=`git log -1 --stat --pretty="%b" | sed '$d' | awk '{print $1}'`
Expand Down

0 comments on commit 9d39fe1

Please sign in to comment.