67 |
diffcp /etc/pootle/templates/$(basename $pkg).pot /etc/pootle/po/sme7bp/templates/$(basename $pkg).pot |
diffcp /etc/pootle/templates/$(basename $pkg).pot /etc/pootle/po/sme7bp/templates/$(basename $pkg).pot |
68 |
done |
done |
69 |
|
|
70 |
# Update sme7admin templates |
# Update sme7admin template |
71 |
potempl /etc/pootle/cvs/smecontribs/smeserver-sme7admin/*/*/root/{etc/e-smith/web/functions/sme7admin,usr/bin/sme7admind} > sme7admin.pot |
potempl /etc/pootle/cvs/smecontribs/smeserver-sme7admin/*/*/root/{etc/e-smith/web/functions/sme7admin,usr/bin/sme7admind} > sme7admin.pot |
72 |
diffmv sme7admin.pot /etc/pootle/po/sme7cp/templates/sme7admin.pot |
diffmv sme7admin.pot /etc/pootle/po/sme7cp/templates/sme7admin.pot |
73 |
|
|
191 |
# Build xml diffs |
# Build xml diffs |
192 |
for pkg in $(ls -d *.update | sed 's@.update$@@') |
for pkg in $(ls -d *.update | sed 's@.update$@@') |
193 |
do |
do |
|
orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale |
|
194 |
rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
195 |
|
[ -d $pkg.update/root/etc/e-smith/locale ] || continue |
196 |
|
orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale |
197 |
diff -ruN $orig $pkg.update/root/etc/e-smith/locale \ |
diff -ruN $orig $pkg.update/root/etc/e-smith/locale \ |
198 |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \ |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \ |
199 |
> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
205 |
diff -ruN $orig $pkg.update/po \ |
diff -ruN $orig $pkg.update/po \ |
206 |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
207 |
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
208 |
|
|
209 |
|
# Build sme7admin diff |
210 |
|
pkg=$(ls -d smeserver-sme7admin-* | sed 's@.update$@@') |
211 |
|
orig=/etc/pootle/cvs/smecontribs/smeserver-sme7admin/*7/$pkg/po |
212 |
|
diff -ruN $orig $pkg.update/po \ |
213 |
|
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
214 |
|
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
215 |
|
|