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 ###"
23 echo "Convert GSI to POT:"
25 oo2po
-P en-US.sdf
$potdir
27 echo "Create English version using poen:"
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/*
42 rm -rf $potdir $enpodir