Update of /cvsroot/epfl/tgtools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20232
Modified Files:
jpgbmp
Log Message:
convertit maintenant les .tga en .jpg uniquement....
Index: jpgbmp
===================================================================
RCS file: /cvsroot/epfl/tgtools/jpgbmp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** jpgbmp 17 Nov 2004 21:48:23 -0000 1.1
--- jpgbmp 18 Nov 2004 07:02:25 -0000 1.2
***************
*** 32,62 ****
done
! for ENTREE in $file/*.jpg
! do
! if [ -e ./$ENTREE ]; then
! affiche=" --- `basename $ENTREE`"
! SORTIE=$(echo $ENTREE | sed -e s/jpg/bmp/)
! if [ ! -e $SORTIE ]; then
! convert $ENTREE $SORTIE
! if [ -e $SORTIE ]; then
! result="[OK]"
! else
! result="[FAILED]"
! fi
! else
! result="[PASS]"
! fi
! let affichesize=$(echo $affiche | wc -c)
! let resultsize=$(echo $result | wc -c)
! let fillsize=${TERMWIDTH}-${affichesize}-${resultsize}-3
! fill=""
! while [ "$fillsize" -gt "0" ]
! do
! fill="${fill} "
! let fillsize=${fillsize}-1
! done
! echo "$affiche$fill$result"
! fi
! done
for ENTREE in $file/*.tga
--- 32,62 ----
done
! # for ENTREE in $file/*.jpg
! # do
! # if [ -e ./$ENTREE ]; then
! # affiche=" --- `basename $ENTREE`"
! # SORTIE=$(echo $ENTREE | sed -e s/jpg/bmp/)
! # if [ ! -e $SORTIE ]; then
! # convert $ENTREE $SORTIE
! # if [ -e $SORTIE ]; then
! # result="[OK]"
! # else
! # result="[FAILED]"
! # fi
! # else
! # result="[PASS]"
! # fi
! # let affichesize=$(echo $affiche | wc -c)
! # let resultsize=$(echo $result | wc -c)
! # let fillsize=${TERMWIDTH}-${affichesize}-${resultsize}-3
! # fill=""
! # while [ "$fillsize" -gt "0" ]
! # do
! # fill="${fill} "
! # let fillsize=${fillsize}-1
! # done
! # echo "$affiche$fill$result"
! # fi
! # done
for ENTREE in $file/*.tga
***************
*** 64,68 ****
if [ -e ./$ENTREE ]; then
affiche=" --- `basename $ENTREE`"
! SORTIE=$(echo $ENTREE | sed -e s/tga/bmp/)
if [ ! -e $SORTIE ]; then
convert $ENTREE $SORTIE
--- 64,68 ----
if [ -e ./$ENTREE ]; then
affiche=" --- `basename $ENTREE`"
! SORTIE=$(echo $ENTREE | sed -e s/tga/jpg/)
if [ ! -e $SORTIE ]; then
convert $ENTREE $SORTIE
|