#!/bin/bash
# script for generating thumbnails

if [ -e /tmp/tngen.log ];
then
echo "already active!"
echo "wait or remove /tmp/tngen.log"
exit
fi
touch /tmp/tngen.log
find ./ -name "*.jpg" -exec /home/copas/prg/scripts/mknorm.sh {} jpg \;
find ./ -name "*.gif" -exec /home/copas/prg/scripts/mknorm.sh {} gif \;
find ./ -name "*.JPG" -exec /home/copas/prg/scripts/mknorm.sh {} JPG \;
find ./ -name "*.GIF" -exec /home/copas/prg/scripts/mknorm.sh {} GIF \;
rm /tmp/tngen.log

