"
fi
;;
*)
thumb=$subdir/`echo "$file" | sed "s/$ext\$/_t.jpg/"`
if [ -f "$thumb" -a ! -s "$thumb" ] ; then
rm -f "$thumb"
fi
info=$subdir/`echo "$file" | sed "s/$ext\$/_t.info/"`
if [ -f "$info" -a ! -s "$info" ] ; then
rm -f "$info"
fi
cat << EOF > $makefile
all: $thumb $info
$thumb: $file
@echo "$file" >&2
@$what "$file" | pnmscale -xy "$size" "$size" | cjpeg > "$thumb"
$info: $thumb
@$infoscript "$file" "$what" "$thumb" > "$info"
EOF
make -f $makefile | egrep -v 'is up to date' >&2
rm -f $makefile
set junk `cat "$info"` ; shift
kb="$1"
width="$2"
height="$3"
twidth="$4"
theight="$5"
if [ "$width" -le "$size" -a "$height" -le "$size" ] ; then
echo " | $file | ${kb}K ${width}x${height} |
| "
else
echo " | $file | ${kb}K ${width}x${height} |
| "
fi
;;
esac
col=`echo $col + 1 | bc`
done
cat << 'EOF'