blob: 5805f14efaec253ca6bf93baa2be44a6aa2d3fd7 (
plain)
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
|
#!/bin/bash
OOBUILDDIR='/home/timar/libreoffice-master'
MY_PATH=`pwd`
sed -e 's/=\(.\+\)/="\1"/' $OOBUILDDIR/config_host.mk > Env.Host.sh
. Env.Host.sh
base=`dirname $0`
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}/home/timar/libreoffice-master/solver/unxlngx6.pro/lib
if [ -z $@ ]
then
langs=`ls -1 $SRC_ROOT/translations/source`
else
langs=("$@")
fi
for i in $langs
do
echo "******** $i ***********"
po2oo -i $SRC_ROOT/translations/source/$i -t $SRC_ROOT/workdir/unxlngx6.pro/CustomTarget/translations/translate/sdf-template/en-US.sdf -o $i.sdf -l $i
/home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -wef $i.err $i.sdf >$i.log
grep -v " en-US " $i.sdf > $i-mono.sdf
/home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -l "" -wef $i-fatal.err $i-mono.sdf >$i-fatal.log
READMETMP=$(mktemp)
grep "^readlic" $i.sdf | grep -v " en-US " | sed -e "s/</\\\</g" -e "s/>/\\\>/g" -e 's/"/\\\"/g' > $READMETMP
/home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i.log
/home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i-fatal.log
# TREETMP=$(mktemp)
# grep "tree_strings\.xhp" $i.sdf | grep -v " en-US " | sed -e "s/</\\\</g" -e "s/>/\\\>/g" -e 's/"/\\\"/g' > $TREETMP
# gsicheck -c -l "" $TREETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i.log
# gsicheck -c -l "" $TREETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i-fatal.log
WITH_LANG=$i $base/doublecheck.pl -m formula -f source.core.resource.core_resource.src -g RID_STRLIST_FUNCTION_NAMES $i.sdf >>$i.log
WITH_LANG=$i $base/doublecheck.pl -m scaddins -f source.analysis.analysis_funcnames.src -g RID_ANALYSIS_FUNCTION_NAMES $i.sdf >>$i.log
WITH_LANG=$i $base/doublecheck.pl -m scaddins -f source.datefunc.datefunc.src -g RID_DATE_FUNCTION_NAMES $i.sdf >> $i.log
WITH_LANG=$i $base/doublecheck.pl -m sw -f source.ui.utlui.poolfmt.src -g "STR_POOLNUMRULE_.*" $i.sdf >> $i.log
WITH_LANG=$i $base/doublecheck.pl -m sw -f source.ui.utlui.poolfmt.src -g "STR_POOLCOLL_.*" $i.sdf >> $i.log
rm $i.sdf $i-mono.sdf
done
|