:
#------------------------------------------------------------
# Script to create gifs from all wip files in directory
for file 
 do
   gif_file=`echo $file | awk '{sub(/.wip/, ".gif", $1)}{print $1}' `
   ppm_file=`echo $file | awk '{sub(/.wip/, ".ppm", $1)}{print $1}' `
   yuv_file=`echo $file | awk '{sub(/.wip/, "", $1)}{print $1}' `
   wip -d $gif_file/gif -x $file
   convert -negate -geometry 50% $gif_file $ppm_file
   ppmtoyuvsplit $yuv_file $ppm_file
   rm $ppm_file
   echo $yuv_file 'created from' $file
 done
