/[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.18 by unnilennium, Tue Mar 14 22:18:36 2017 UTC Revision 1.19 by unnilennium, Tue Mar 28 17:53:55 2017 UTC
# Line 46  cd /var/lib/pootle/tmp Line 46  cd /var/lib/pootle/tmp
46  # Sync database stores to filesystem  # Sync database stores to filesystem
47  django-admin sync_stores --settings=pootle.settings &> /dev/null  django-admin sync_stores --settings=pootle.settings &> /dev/null
48    
49  for ver in sme8 sme9 sme10  for ver in sme9 sme10
50  do  do
51      (($debug)) && echo&& echo builtin echo "anaconda $ver" # debug jpp      (($debug)) && echo&& echo builtin echo "anaconda $ver" # debug jpp
52      # Update anaconda template      # Update anaconda template
# Line 75  do Line 75  do
75      done      done
76  done  done
77    
78  for ver in contribs8 contribs9  for ver in contribs9
79  do  do
80      nver=$(echo $ver| tr -dc '0-9')      nver=$(echo $ver| tr -dc '0-9')
81      if [ "$nver" -ge  "9" ]      if [ "$nver" -ge  "9" ]
# Line 177  do Line 177  do
177              ls /var/lib/pootle/po/*/*/$pkg.po | cut -d/ --output-delimiter " " -f6,7 | while read ver lang              ls /var/lib/pootle/po/*/*/$pkg.po | cut -d/ --output-delimiter " " -f6,7 | while read ver lang
178              do              do
179                  [[ $ver == *7 ]] && continue                  [[ $ver == *7 ]] && continue
180                    [[ $ver == *8 ]] && continue
181    
182                  (($debug)) && echo&& echo builtin echo "anaconda $ver $lang "                  (($debug)) && echo&& echo builtin echo "anaconda $ver $lang "
183                  mkdir -p /var/www/html/pootle/anaconda/$ver/$lang/LC_MESSAGES                  mkdir -p /var/www/html/pootle/anaconda/$ver/$lang/LC_MESSAGES
# Line 190  do Line 191  do
191              echo "$pkgs" | cut -d/ --output-delimiter " " -f8,9 | while read ver pkgname              echo "$pkgs" | cut -d/ --output-delimiter " " -f8,9 | while read ver pkgname
192              do              do
193                  [[ $ver == *7 ]] && continue                  [[ $ver == *7 ]] && continue
194                    [[ $ver == *8 ]] && continue
195    
196                  (($debug)) && echo&& echo builtin echo "$pkg $ver"                  (($debug)) && echo&& echo builtin echo "$pkg $ver"
197                  for lang in $(ls -I templates /var/lib/pootle/po/$ver/ 2> /dev/null | grep '[[:alpha:]]$' | sort -u)                  for lang in $(ls -I templates /var/lib/pootle/po/$ver/ 2> /dev/null | grep '[[:alpha:]]$' | sort -u)
# Line 211  do Line 213  do
213          echo "$pkgs" | cut -d/ --output-delimiter " " -f8,9 | while read ver pkgname          echo "$pkgs" | cut -d/ --output-delimiter " " -f8,9 | while read ver pkgname
214          do          do
215              [[ $ver == *7 ]] && continue              [[ $ver == *7 ]] && continue
216                [[ $ver == *8 ]] && continue
217    
218              if [[ $ver == contribs* ]]              if [[ $ver == contribs* ]]
219              then              then


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