141 |
# Build console files |
# Build console files |
142 |
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) |
143 |
mkdir -p ${pkgname}.update/po/$lang |
mkdir -p ${pkgname}.update/po/$lang |
144 |
for pkg in $(ls /etc/pootle/po/sme7bc/templates/ | sed -n 's@\.pot@\.po@p') |
for pkg in $(ls /etc/pootle/po/sme7bc/templates/ | sed -n '/^anaconda.pot$/b;s@\.pot@\.po@p') |
145 |
do |
do |
146 |
msgcat -F --no-wrap /etc/pootle/po/sme7bc/$lang/$pkg \ |
msgcat -F --no-wrap /etc/pootle/po/sme7bc/$lang/$pkg \ |
147 |
| 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' \ |
180 |
for pkg in $(ls -d *.update | sed 's@.update$@@') |
for pkg in $(ls -d *.update | sed 's@.update$@@') |
181 |
do |
do |
182 |
orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale |
orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale |
183 |
rm /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
184 |
diff -ruN $orig $pkg.update/root/etc/e-smith/locale \ |
diff -ruN $orig $pkg.update/root/etc/e-smith/locale \ |
185 |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \ |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \ |
186 |
> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
189 |
# Build console diffs |
# Build console diffs |
190 |
pkg=$(ls -d smeserver-locale-* | sed 's@.update$@@') |
pkg=$(ls -d smeserver-locale-* | sed 's@.update$@@') |
191 |
orig=/etc/pootle/cvs/smeserver/smeserver-locale/*7/$pkg/po |
orig=/etc/pootle/cvs/smeserver/smeserver-locale/*7/$pkg/po |
|
rm /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
|
192 |
diff -ruN $orig $pkg.update/po \ |
diff -ruN $orig $pkg.update/po \ |
193 |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
194 |
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |