/[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.2 by slords, Sat Jul 12 17:31:26 2008 UTC Revision 1.4 by slords, Fri Oct 3 21:33:16 2008 UTC
# Line 3  Line 3 
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
# Line 22  do Line 26  do
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/ | sed -n 's@\.pot@\.po@p')      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' \
# Line 61  done Line 65  done
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
# Line 70  done Line 74  done
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


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