|
From: mdw c. <myd...@li...> - 2003-04-04 22:22:48
|
MyDynaWeb CVS committal
Author : xbtheria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/galleries
Modified Files:
gallery_wizzard.sh
Log Message:
- mon appareil produit des *JPG (et ma paresse a produit ce commit).
- plus strict et moins ambigu dans la liste de choix.
- ne pourrait-on avoir un ".gallery_wiz..." ou "~/.galle..." ?? (tjrs cette paresse !!)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/galleries/gallery_wizzard.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- gallery_wizzard.sh 16 May 2002 03:24:40 -0000 1.7
+++ gallery_wizzard.sh 4 Apr 2003 22:22:46 -0000 1.8
@@ -18,7 +18,7 @@
fi
echo "Creating thumbails ..."
- for image in *.jpg
+ for image in *.jpg *.JPG
do
if [ ! -r "thumbs/$image" ]
then
@@ -34,12 +34,12 @@
render_mid() {
if [ ! -d pics_640x480 ]
then
- echo -n "pics_640x480 does not exist, creating it : "
- mkdir pics_640x480 && echo "OK"
+ echo -n "pics_640x480 does not exist, creating it : "
+ mkdir pics_640x480 && echo "OK"
fi
echo "Creating mid pics (640x480) ..."
- for image in *.jpg
+ for image in *.jpg *.JPG
do
if [ ! -r "pics_640x480/$image" ]
then
@@ -121,7 +121,6 @@
echo "2 : Rendering 640x480 pictures in the current directory"
echo "3 : Rendering the directories and the subdirectories and then export the directory to a remote host (ssh)"
echo "4 : Rendering thumbnails and medium size images in the current directory and subdirectories [default]"
- echo "5 : Full method : 4 and 5"
echo "-------------------------------------"
echo -n "-> "
@@ -143,9 +142,14 @@
4)
recurse_directory
;;
+
+ '')
+ recurse_directory
+ ;;
*)
- recurse_directory
+ echo "ERROR: '$CHOICE' is an unknown option."
+ exit 1
;;
esac
|