3105 |
kaklik |
1 |
#!/bin/bash |
|
|
2 |
cd ../../Modules/ |
|
|
3 |
|
|
|
4 |
echo processing: `pwd` |
|
|
5 |
|
|
|
6 |
ls | while read CATEGORY; do |
|
|
7 |
if [ -d $CATEGORY ]; then |
3106 |
kaklik |
8 |
echo "processing modules category:" $CATEGORY |
3105 |
kaklik |
9 |
cd $CATEGORY # prejde do kategorie modulu |
|
|
10 |
ls | while read NAME; do # vypise seznam modulu |
|
|
11 |
if [ -d $NAME ]; then # zkontroluje jestli vypsane soubory jsou adresare |
3106 |
kaklik |
12 |
echo "processing module:" $NAME |
|
|
13 |
if [ -r $NAME/PrjInfo.txt ]; then # existuje alespon popisny soubor? |
|
|
14 |
mkdir -p $NAME/DOC/SRC/img/ # pokud neexistuje adresar na obrazky, bude vytvoren |
|
|
15 |
echo creating ./$NAME/DOC/SRC/img/${NAME}_QRcode.png |
|
|
16 |
qrencode -s 15 -l L "http://www.mlab.cz/PermaLink/$NAME" -o "./$NAME/DOC/SRC/img/${NAME}_QRcode.png" |
|
|
17 |
svn add --parents ./$NAME/DOC/SRC/img/${NAME}_QRcode.png |
3105 |
kaklik |
18 |
fi |
|
|
19 |
else |
|
|
20 |
echo "No module names" |
|
|
21 |
fi |
|
|
22 |
done |
|
|
23 |
cd .. |
|
|
24 |
else |
|
|
25 |
echo "No document dir" |
|
|
26 |
fi |
|
|
27 |
done |
|
|
28 |
|
|
|
29 |
exit 0 |