/[smeserver]/builds_bin/genpatches
ViewVC logotype

Diff of /builds_bin/genpatches

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by slords, Thu Mar 5 19:32:51 2009 UTC Revision 1.7 by slords, Thu Mar 5 21:41:33 2009 UTC
# Line 72  done Line 72  done
72  # Build xml diffs  # Build xml diffs
73  for pkg in $(ls -d *.update | sed 's@.update$@@')  for pkg in $(ls -d *.update | sed 's@.update$@@')
74  do  do
     orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale  
75      rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch      rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch
76        [ -d $pkg.update/root/etc/e-smith/locale ] || continue
77        orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale
78      diff -ruN $orig $pkg.update/root/etc/e-smith/locale \      diff -ruN $orig $pkg.update/root/etc/e-smith/locale \
79      | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \      | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \
80      > /var/www/html/patches/$pkg-locale-$(date +%F).patch      > /var/www/html/patches/$pkg-locale-$(date +%F).patch
# Line 85  orig=/etc/pootle/cvs/smeserver/smeserver Line 86  orig=/etc/pootle/cvs/smeserver/smeserver
86  diff -ruN $orig $pkg.update/po \  diff -ruN $orig $pkg.update/po \
87  | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \  | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \
88  >> /var/www/html/patches/$pkg-locale-$(date +%F).patch  >> /var/www/html/patches/$pkg-locale-$(date +%F).patch
89    
90    # Build sme7admin diff
91    pkg=$(ls -d smeserver-sme7admin-* | sed 's@.update$@@')
92    orig=/etc/pootle/cvs/smecontribs/smeserver-sme7admin/*7/$pkg/po
93    diff -ruN $orig $pkg.update/po \
94    | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \
95    >> /var/www/html/patches/$pkg-locale-$(date +%F).patch
96    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed