fix git support for v1.5.3 (or higher) by setting "--work-tree"
[translate_toolkit.git] / convert / roundtrip-OOo
blob32e30cadc289a717d0afea47b6996487c1515bc6
1 #!/bin/bash
3 potdir=pot
4 enpodir=en-po
5 gsidir=.gsi
7 mkdir -p $gsidir
9 cd $gsidir
11 # Get files from Pavel
12 echo "Downloading files:"
13 wget -N --retr-symlinks ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/POT/OpenOffice.org-POT-stable-latest.tar.gz
14 wget -N --retr-symlinks ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/POT/OpenOffice.org-POT-latest.tar.gz
16 for gsi in $(ls OpenOffice.org*.tar.gz)
18 echo "### Checking $gsi ###"
19 echo "Untarring"
20 tar xzf $gsi
21 rm -rf pot
23 echo "Convert GSI to POT:"
24 mkdir -p $potdir
25 oo2po -P en-US.sdf $potdir
27 echo "Create English version using poen:"
28 rm -rf $enpodir
29 mkdir -p $enpodir
30 poen $potdir $enpodir
32 echo "Create en-XX.sdf:"
33 po2oo -l en-XX -t en-US.sdf $enpodir en-XX.sdf
35 # Check for lines that are not duplicated
36 echo "Analysing (if you see nothing, then that is good):"
37 cut -f11,13,14 en-XX.sdf | uniq -u
39 rm -rf pot en-US.sdf $potdir/* $enpodir/*
40 done
42 rm -rf $potdir $enpodir