-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgenerateCertificates.sh
39 lines (33 loc) · 1.06 KB
/
generateCertificates.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# generateCertificates.sh
#
# generation of certificates for a list of geocachers
#
generate() {
test -f Certificats/Geocaching__Bretagne__$1_white.png && return 0
date
for color in white black
do
echo Generating $1 $2 $color
time /cygdrive/c/My\ Program\ Files/Python/python.exe generateAnimation.py \
-f Cote_Bretagne.gpx -f Cote_Atlantique.gpx -f Cote_Manche.gpx -f Cote_Mediterrannee.gpx -f Frontiere_Sud.gpx -f Frontiere_Est.gpx \
-l Logs/Geocaching_all_logs_$1.htm -c $color -g "$2" \
-z _Bretagne_ -x GC_Bretagne_errors.txt -p GC_Bretagne.csv \
2>&1 > resu_$1_$color.txt
cp Images/Geocaching__Bretagne__$1.png Certificats/Geocaching__Bretagne__$1_$color.png
done
return 1
}
if [ $# -eq 2 ]
then
generate "$1" "$2"
exit
fi
generate TeamCasimirdl "(TeamCasimirdl|Casimirdelyon)"
generate C2iC "(C2iC|Breizh Geocacheurs)"
generate Pepe29 "Pepe29"
generate Philfat29 "Philfat29"
generate Arlok78 "Arlok78"
generate Garenkreiz "Garenkreiz"
generate Kavadell "Kavadell"
generate Cukcelte "Cukcelte"