Rev Author Line No. Line
3260 kaklik 1 #!/bin/bash
2 cd ../../Modules/
3  
4 echo processing: `pwd`
5  
6 ls | while read CATEGORY; do
7 if [ -d $CATEGORY ]; then
8 echo "processing modules category:" $CATEGORY
9 ls $CATEGORY | while read NAME; do # vypise seznam modulu
10 if [ -d $CATEGORY/$NAME ]; then # zkontroluje jestli vypsane soubory jsou adresare
11 echo "processing module:" $NAME
12 if [ -r $CATEGORY/$NAME/PrjInfo.txt ]; then # existuje alespon popisny soubor?
3286 kaklik 13 ls $CATEGORY/$NAME/DOC/SRC/ | while read IMAGE; do
14 if [ IMAGE == *.jpg ]; then
15 echo moving images to $CATEGORY/$NAME/DOC/SRC/img/
16 svn mv --parents $CATEGORY/$NAME/DOC/SRC/IMAGE $CATEGORY/$NAME/DOC/SRC/img/
3260 kaklik 17 fi
3286 kaklik 18 done
3260 kaklik 19 fi
3286 kaklik 20 else
3260 kaklik 21 echo "Nothing to done"
22 fi
23 done
24 else
25 echo "No document dir"
26 fi
27 done
28  
29 exit 0