3 |
# Functions |
# Functions |
4 |
. /etc/pootle/bin/functions |
. /etc/pootle/bin/functions |
5 |
|
|
6 |
|
# Clean up tmp dir |
7 |
|
rm -rf /etc/pootle/tmp |
8 |
|
mkdir -p /etc/pootle/tmp /var/www/html/{patches,errors,anaconda} |
9 |
|
|
10 |
#========================================================== |
#========================================================== |
11 |
|
|
12 |
cd /etc/pootle/tmp |
cd /etc/pootle/tmp |
26 |
# Build console files |
# Build console files |
27 |
pkgname=$(ls -d /etc/pootle/cvs/smeserver/smeserver-locale/*7/*/root | cut -d/ -f8) |
pkgname=$(ls -d /etc/pootle/cvs/smeserver/smeserver-locale/*7/*/root | cut -d/ -f8) |
28 |
mkdir -p ${pkgname}.update/po/$lang |
mkdir -p ${pkgname}.update/po/$lang |
29 |
for pkg in $(ls /etc/pootle/po/sme7bc/templates/ -I anaconda.pot | sed 's@\.pot@\.po@') |
for pkg in $(ls /etc/pootle/po/sme7bc/templates/ | sed -n '/^anaconda.pot$/b;s@\.pot@\.po@p') |
30 |
do |
do |
31 |
msgcat -F --no-wrap /etc/pootle/po/sme7bc/$lang/$pkg \ |
msgcat -F --no-wrap /etc/pootle/po/sme7bc/$lang/$pkg \ |
32 |
| grep -v 'Project-Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|X-Generator' \ |
| grep -v 'Project-Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|X-Generator' \ |