65 |
for pkg in $(ls -d *.update | sed 's@.update$@@') |
for pkg in $(ls -d *.update | sed 's@.update$@@') |
66 |
do |
do |
67 |
orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale |
orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale |
68 |
rm /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch |
69 |
diff -ruN $orig $pkg.update/root/etc/e-smith/locale \ |
diff -ruN $orig $pkg.update/root/etc/e-smith/locale \ |
70 |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \ |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \ |
71 |
> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
74 |
# Build console diffs |
# Build console diffs |
75 |
pkg=$(ls -d smeserver-locale-* | sed 's@.update$@@') |
pkg=$(ls -d smeserver-locale-* | sed 's@.update$@@') |
76 |
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 |
|
77 |
diff -ruN $orig $pkg.update/po \ |
diff -ruN $orig $pkg.update/po \ |
78 |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
| sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \ |
79 |
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |
>> /var/www/html/patches/$pkg-locale-$(date +%F).patch |