-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-world.sh
executable file
·43 lines (32 loc) · 1.08 KB
/
docker-world.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
38
39
40
41
42
43
#!/bin/bash
# cd to script dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
now=`date`
echo "Starting: $now"
if [ -f running ]; then
echo "$0 still running"
exit 1
fi
touch running
trap "rm $PWD/running" EXIT
TARGET=${1:-full}
# throw away building artefacts
git stash
git stash drop
# get latest version
git pull
# only languages which have translations in transifex
: ${langs:=en ca da de es fa fi fr hu id it ja km_KH ko lt nl pl pt_BR pt_PT ro tr ru uk zh_CN}
# if you only want to build one language, do:
# $ langs=de ./docker-world.sh
time rsync -hvzc -e ssh --progress output/html/version.txt qgis.osgeo.osuosl.org:/var/www/qgisdata/QGIS-Website/live/html
for l in $langs
do
time /bin/bash ./docker-run.sh $TARGET LANG=$l
time rsync -hvrzc -e ssh --progress output/html/$l qgis.osgeo.osuosl.org:/var/www/qgisdata/QGIS-Website/live/html
# 21 mar 2015: commented local fall back server www2, and rsync with osgeo server again
#time rsync -hvrzc --progress output/html/$l /var/www/qgisdata/QGIS-Website/live/html
done
now=`date`
echo "Finished: $now"