/[smeserver]/builds_bin/update_templates
ViewVC logotype

Diff of /builds_bin/update_templates

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

Revision 1.9 by slords, Mon Jun 22 16:46:16 2009 UTC Revision 1.10 by slords, Mon Oct 26 22:02:53 2009 UTC
# Line 44  killall PootleServer Line 44  killall PootleServer
44    
45  #==========================================================  #==========================================================
46    
47  # Update anaconda templates  # Update anaconda template
48  anacondatmpl > anaconda.pot  anacondatmpl > anaconda.pot
49  diffmv anaconda.pot /etc/pootle/po/sme7bc/templates/anaconda.pot  diffmv anaconda.pot /etc/pootle/po/sme7bc/templates/anaconda.pot
50    
# Line 112  do Line 112  do
112      diffmv $chk $(echo $chk | sed 's@/tmp/@/po/@')      diffmv $chk $(echo $chk | sed 's@/tmp/@/po/@')
113  done  done
114    
115  # Create error compendium to assist translators  # Copy po files so we can create error reports
116  for lang in $(ls -I templates /etc/pootle/po/sme* | grep '[[:alpha:]]$' | sort -u)  rsync -amR --include '*/' --include '*.po' --exclude '*' /etc/pootle/po/./sme*/ /etc/pootle/tmp/errors/
117  do  find /etc/pootle/tmp/errors/ -type f -exec sed -i '/^#~/d' {} \+
     pocompendium -e errors-$lang.po -d /etc/pootle/po/sme*/$lang  
     sed -i '0,/^$/d;/^#~/d' errors-$lang.po  
     sed -i ':a;/^\n*$/{$d;N;ba;}' errors-$lang.po  
     chmod 644 errors-$lang.po  
     diffmv errors-$lang.po /var/www/html/errors/errors-$lang.po  
 done  
118    
119  #==========================================================  #==========================================================
120    
# Line 133  nohup PootleServer --prefsfile /etc/poot Line 127  nohup PootleServer --prefsfile /etc/poot
127    
128  cd /etc/pootle/tmp  cd /etc/pootle/tmp
129    
130    # Create error compendium to assist translators
131    for lang in $(ls /etc/pootle/tmp/errors/sme* | grep '[[:alpha:]]$' | sort -u)
132    do
133        pocompendium -e errors-$lang.po -d /etc/pootle/tmp/errors/sme*/$lang
134        sed -i '0,/^$/d;/^#~/d' errors-$lang.po
135        sed -i ':a;/^\n*$/{$d;N;ba;}' errors-$lang.po
136        chmod 644 errors-$lang.po
137        diffmv errors-$lang.po /var/www/html/errors/errors-$lang.po
138    done
139    
140  # Build diffs for languages  # Build diffs for languages
141  for lang in $(ls /etc/pootle/po/sme7bp -I templates)  for lang in $(ls /etc/pootle/po/sme7bp -I templates)
142  do  do


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