/[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.14 by slords, Thu Apr 8 20:03:57 2010 UTC Revision 1.16 by slords, Sun Nov 21 22:10:41 2010 UTC
# Line 39  done Line 39  done
39    
40  cd /var/lib/pootle/tmp  cd /var/lib/pootle/tmp
41    
42    # Sync database stores to filesystem
43    django-admin sync_stores --settings=pootle.settings &> /dev/null
44    
45  for ver in sme7 sme8  for ver in sme7 sme8
46  do  do
47      # Update anaconda template      # Update anaconda template
# Line 52  do Line 55  do
55      diffmv backup-console.pot /var/lib/pootle/po/$ver/templates/backup-console.pot      diffmv backup-console.pot /var/lib/pootle/po/$ver/templates/backup-console.pot
56      potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-manager/$ver/ -type f -name 25Copyright) > foot.tmpl.pot      potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-manager/$ver/ -type f -name 25Copyright) > foot.tmpl.pot
57      diffmv foot.tmpl.pot /var/lib/pootle/po/$ver/templates/foot.tmpl.pot      diffmv foot.tmpl.pot /var/lib/pootle/po/$ver/templates/foot.tmpl.pot
58      potempl $(find /var/lib/pootle/cvs/smeserver/*/$ver/ -type f -regex '.*/e-?smith/console.*') > server-console.pot      potempl $(find /var/lib/pootle/cvs/smeserver/*/$ver/ -type f -regex '.*/e-?smith/console.*' -not -regex '.*\+ldap/.*') > server-console.pot
59      diffmv server-console.pot /var/lib/pootle/po/$ver/templates/server-console.pot      diffmv server-console.pot /var/lib/pootle/po/$ver/templates/server-console.pot
60      potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-quota/$ver/ -type f -name userOverQuota.tmpl) > userOverQuota.tmpl.pot      potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-quota/$ver/ -type f -name userOverQuota.tmpl) > userOverQuota.tmpl.pot
61      diffmv userOverQuota.tmpl.pot /var/lib/pootle/po/$ver/templates/userOverQuota.tmpl.pot      diffmv userOverQuota.tmpl.pot /var/lib/pootle/po/$ver/templates/userOverQuota.tmpl.pot
# Line 125  rsync -amR --include '*/' --include '*.p Line 128  rsync -amR --include '*/' --include '*.p
128    
129  #==========================================================  #==========================================================
130    
131    # Sync filesystem to database stores
132    django-admin update_stores --settings=pootle.settings &> /dev/null
133    
134  # Recalculate stats and restart server  # Recalculate stats and restart server
135  /usr/sbin/PootleServer --refreshstats &> /dev/null  django-admin refresh_stats --settings=pootle.settings &> /dev/null
136    
137  #==========================================================  #==========================================================
138    


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