Improve Lupdate.sh to support branches.

(grafted from 47c2343ca9629585d1e92aa43bc45850403073e8)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-05-19 12:08:13 +03:00
parent 780ce623ab
commit 7244a90bc3

View File

@ -10,17 +10,21 @@ cd ../share/translations
RESOURCES=`find . -regextype sed -regex ".*/measurements_p[0-9]\{1,2\}\.ts"` RESOURCES=`find . -regextype sed -regex ".*/measurements_p[0-9]\{1,2\}\.ts"`
cd ../../scripts cd ../../scripts
# Empty means unstable branch
MEASUREMENTS_BRANCH='' # For example _05x
VALENTINA_BRANCH='' # for example 05x
NUMBER=( $RESOURCES ) NUMBER=( $RESOURCES )
NUMBER=${#NUMBER[@]} NUMBER=${#NUMBER[@]}
for ((i=0;i<NUMBER;i++)); do for ((i=0;i<NUMBER;i++)); do
tx pull -r valentina-project.measurements_p${i}ts --mode=developer -f --skip & tx pull -r valentina-project.measurements_p${i}${MEASUREMENTS_BRANCH}ts --mode=developer -f --skip &
sleep 5 sleep 5
done done
tx pull -r valentina-project.valentina_ts --mode=developer -f --skip & tx pull -r valentina-project.valentina_${VALENTINA_BRANCH}ts --mode=developer -f --skip &
sleep 5 sleep 5
tx pull -r valentina-project.measurements_p998ts --mode=developer -f --skip & tx pull -r valentina-project.measurements_p998${MEASUREMENTS_BRANCH}ts --mode=developer -f --skip &
wait wait