/[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.10 by slords, Mon Oct 26 22:02:53 2009 UTC Revision 1.11 by slords, Tue Mar 2 21:16:48 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  # Functions  # Functions
4  . /etc/pootle/bin/functions  . /var/lib/pootle/bin/functions
5    
6  # Clean up tmp dir  # Clean up tmp dir
7  rm -rf /etc/pootle/tmp  rm -rf /var/lib/pootle/tmp
8  mkdir -p /etc/pootle/tmp /var/www/html/{patches,errors,anaconda}  mkdir -p /var/lib/pootle/tmp/ /var/www/html/{patches,errors,anaconda}
9    
10  #==========================================================  #==========================================================
11    
12  export CVS_RSH=ssh  export CVS_RSH=ssh
13    
14  # Update/expand smeserver cvs  # Update/expand smeserver cvs
15  cd /etc/pootle/cvs/smeserver  cd /var/lib/pootle/cvs/smeserver
16  for pkg in */sme7 anaconda/sme8 booty/sme8  for pkg in *e-smith*/sme* *sme*/sme* anaconda/sme* booty/sme*
17  do  do
18      make -C $pkg clean &> /dev/null      make -C $pkg clean &> /dev/null
19  done  done
20  cvs update -dPA > /dev/null  cvs update -dPA > /dev/null
21  for pkg in */sme7 anaconda/sme8 booty/sme8  for pkg in *e-smith*/sme* *sme*/sme* anaconda/sme* booty/sme*
22  do  do
23      make -C $pkg prep &> /dev/null      make -C $pkg prep &> /dev/null
24  done  done
25    
26  # Update/expand smecontribs cvs  # Update/expand smecontribs cvs
27  cd /etc/pootle/cvs/smecontribs  cd /var/lib/pootle/cvs/smecontribs
28  for pkg in */contribs7  for pkg in *e-smith*/contribs* *sme*/contribs*
29  do  do
30      make -C $pkg clean &> /dev/null      make -C $pkg clean &> /dev/null
31  done  done
32  cvs update -dPA > /dev/null  cvs update -dPA > /dev/null
33  for pkg in */contribs7  for pkg in *e-smith*/contribs* *sme*/contribs*
34  do  do
35      make -C $pkg prep &> /dev/null      make -C $pkg prep &> /dev/null
36  done  done
37    
 cd /etc/pootle/tmp  
   
38  #==========================================================  #==========================================================
39    
40  # Take server down to prevent translation issues  cd /var/lib/pootle/tmp
 killall PootleServer  
41    
42  #==========================================================  for ver in sme7 sme8
43    do
44        # Update anaconda template
45        anacondatmpl $ver > anaconda.pot
46        diffmv anaconda.pot /var/lib/pootle/po/$ver/templates/anaconda.pot
47    
48        # Update console templates
49        potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-quota/$ver/ -type f -name adminQuotaSummary.tmpl) > adminQuotaSummary.tmpl.pot
50        diffmv adminQuotaSummary.tmpl.pot /var/lib/pootle/po/$ver/templates/adminQuotaSummary.tmpl.pot
51        potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-backup/$ver/ -type f -name do_backup -o -regex '.*/crontab/backup') > backup-console.pot
52        diffmv backup-console.pot /var/lib/pootle/po/$ver/templates/backup-console.pot
53        potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-manager/$ver/ -type f -name 25Copyright) > foot.tmpl.pot
54        diffmv foot.tmpl.pot /var/lib/pootle/po/$ver/templates/foot.tmpl.pot
55        potempl $(find /var/lib/pootle/cvs/smeserver/*/$ver/ -type f -regex '.*/e-?smith/console.*') > server-console.pot
56        diffmv server-console.pot /var/lib/pootle/po/$ver/templates/server-console.pot
57        potempl $(find /var/lib/pootle/cvs/smeserver/e-smith-quota/$ver/ -type f -name userOverQuota.tmpl) > userOverQuota.tmpl.pot
58        diffmv userOverQuota.tmpl.pot /var/lib/pootle/po/$ver/templates/userOverQuota.tmpl.pot
59    
60  # Update anaconda template      # Update panel templates
61  anacondatmpl > anaconda.pot      for pkg in $(find /var/lib/pootle/cvs/smeserver/*/$ver/*/root/etc/e-smith/locale/en-us/ -type f -not -regex '.*\+ldap/.*' 2> /dev/null)
62  diffmv anaconda.pot /etc/pootle/po/sme7bc/templates/anaconda.pot      do
63            xmltempl $ver $pkg
64  # Update console templates          diffcp /var/lib/pootle/templates/$ver/$(basename $pkg).pot /var/lib/pootle/po/$ver/templates/$(basename $pkg).pot
65  potempl $(find /etc/pootle/cvs/smeserver/e-smith-quota/ -type f -name adminQuotaSummary.tmpl) > adminQuotaSummary.tmpl.pot      done
66  diffmv adminQuotaSummary.tmpl.pot /etc/pootle/po/sme7bc/templates/adminQuotaSummary.tmpl.pot  done
 potempl $(find /etc/pootle/cvs/smeserver/e-smith-backup/ -type f -name do_backup -o -regex '.*/crontab/backup') > backup.pot  
 diffmv backup.pot /etc/pootle/po/sme7bc/templates/backup.pot  
 potempl $(find /etc/pootle/cvs/smeserver/e-smith-manager/ -type f -name 25Copyright) > foot.tmpl.pot  
 diffmv foot.tmpl.pot /etc/pootle/po/sme7bc/templates/foot.tmpl.pot  
 potempl $(find /etc/pootle/cvs/smeserver/ -type f -regex '.*/e-?smith/console.*') > server-console.pot  
 diffmv server-console.pot /etc/pootle/po/sme7bc/templates/server-console.pot  
 potempl $(find /etc/pootle/cvs/smeserver/e-smith-quota/ -type f -name userOverQuota.tmpl) > userOverQuota.tmpl.pot  
 diffmv userOverQuota.tmpl.pot /etc/pootle/po/sme7bc/templates/userOverQuota.tmpl.pot  
   
 # Update panel templates  
 for pkg in $(find /etc/pootle/cvs/smeserver/*/*7/*/root/etc/e-smith/locale/en-us/ -type f -print)  
 do  
     xmltempl $pkg "SME Panels"  
     diffcp /etc/pootle/templates/$(basename $pkg).pot /etc/pootle/po/sme7bp/templates/$(basename $pkg).pot  
 done  
   
 # Update sme7admin template  
 potempl /etc/pootle/cvs/smecontribs/smeserver-sme7admin/*/*/root/{etc/e-smith/web/functions/sme7admin,usr/bin/sme7admind} > sme7admin.pot  
 diffmv sme7admin.pot /etc/pootle/po/sme7cp/templates/sme7admin.pot  
67    
68  # Update contrib panel templates  for ver in contribs7 contribs8
 for pkg in $(find /etc/pootle/cvs/smecontribs/*/*7/*/root/etc/e-smith/locale/en-us/ -type f -print)  
69  do  do
70      xmltempl $pkg "Contrib Panels"      if [ "$ver" == "contribs7" ]
71      diffcp /etc/pootle/templates/$(basename $pkg).pot /etc/pootle/po/sme7cp/templates/$(basename $pkg).pot      then
72            # Update sme7admin template
73            potempl /var/lib/pootle/cvs/smecontribs/smeserver-sme7admin/$ver/*/root/{etc/e-smith/web/functions/sme7admin,usr/bin/sme7admind} > sme7admin.pot
74            diffmv sme7admin.pot /var/lib/pootle/po/$ver/templates/sme7admin.pot
75        fi
76    
77        # Update contrib panel templates
78        for pkg in $(find /var/lib/pootle/cvs/smecontribs/*/$ver/*/root/etc/e-smith/locale/en-us/ -type f 2> /dev/null)
79        do
80            xmltempl $ver $pkg
81            diffcp /var/lib/pootle/templates/$ver/$(basename $pkg).pot /var/lib/pootle/po/$ver/templates/$(basename $pkg).pot
82        done
83  done  done
84    
85  #==========================================================  #==========================================================
86    
87    # Create copy of po files without obsolete strings
88    rsync -amR --include '*/' --include '*.po' --exclude '*' /var/lib/pootle/po/./{sme,contribs}[0-9]/ /var/lib/pootle/tmp/errors/
89    find /var/lib/pootle/tmp/errors/ -type f -exec sed -i '/^#~/d' {} \+
90    
91  # Apply templates to languages  # Apply templates to languages
92  for lang in $(ls -I templates /etc/pootle/po/sme* | grep '[[:alpha:]]$' | sort -u)  for lang in $(ls -I templates /var/lib/pootle/po/{sme,contribs}[0-9] 2> /dev/null | grep '[[:alpha:]]$' | sort -u)
93  do  do
94      # Create compendium to assist translations      # Create compendium to assist translations
95      pocompendium -c /etc/pootle/tmp/compendium-$lang.po -d /etc/pootle/po/*/$lang      msgcat --use-first <(msgcat $(find /var/lib/pootle/tmp/errors/*/$lang/ -name '*.po') | msgattrib --translated --no-fuzzy) \
96                           <(msgcat $(find /var/lib/pootle/po/*/$lang/ -name '*.po') | msgattrib --translated --no-fuzzy) \
97        > /var/lib/pootle/tmp/compendium-$lang.po
98    
99      # Use compendium to migrate each project to new template      # Use compendium to migrate each project to new template
100      for proj in $(ls -d /etc/pootle/po/sme*/$lang | sed 's@.*/\([^/]\+\)/[^/]\+$@\1@')      for proj in $(ls -d /var/lib/pootle/po/{sme,contribs}[0-9]/$lang 2> /dev/null | sed 's@.*/\([^/]\+\)/[^/]\+$@\1@')
101      do      do
102          mkdir -p /etc/pootle/tmp/$proj/$lang          mkdir -p /var/lib/pootle/tmp/$proj/$lang
103          pomigrate2 -F -C=/etc/pootle/tmp/compendium-$lang.po -q --no-wrap --locale=$lang /etc/pootle/po/$proj/$lang /etc/pootle/tmp/$proj/$lang /etc/pootle/po/$proj/templates > /dev/null          pomigrate2 -F -C=/var/lib/pootle/tmp/compendium-$lang.po -q --locale=$lang \
104            /var/lib/pootle/po/$proj/$lang /var/lib/pootle/tmp/$proj/$lang /var/lib/pootle/po/$proj/templates > /dev/null
105    
106          # Ensure language is correct          # Ensure language is correct
107          sed -i "/msgid \"en-us\"/{N;s@msgstr \"[^\"]*\"@msgstr \"$lang\"@}" /etc/pootle/tmp/$proj/$lang/*          sed -i "/msgid \"en-us\"/{N;s@msgstr \"[^\"]*\"@msgstr \"$lang\"@}" /var/lib/pootle/tmp/$proj/$lang/* 2> /dev/null
108    
109          # Generate translation memory for panels          # Generate translation memory for panels
110          updatetm --progress none -c 4 -i /etc/pootle/tmp/$proj/$lang -t /etc/pootle/tmp/compendium-$lang.po -o /etc/pootle/tmp/$proj/$lang          updatetm --progress none -c 4 -i /var/lib/pootle/tmp/$proj/$lang -t /var/lib/pootle/tmp/compendium-$lang.po -o /var/lib/pootle/tmp/$proj/$lang
111      done      done
112  done  done
113    
114  # Set package name/version in new po files  # Set package name/version in new po files
115  sed -i 's@Project-Id-Version.*\\n@Project-Id-Version: SME Console\\n@' /etc/pootle/tmp/sme7bc/*/*.po  for ver in 7 8
116  sed -i 's@Project-Id-Version.*\\n@Project-Id-Version: SME Anadonda\\n@' /etc/pootle/tmp/sme7bc/*/anaconda.po  do
117  sed -i 's@Project-Id-Version.*\\n@Project-Id-Version: SME Panels\\n@' /etc/pootle/tmp/sme7bp/*/*.po      find /var/lib/pootle/tmp/sme$ver/ -name '*.po' -printf "sed -i 's@Id-Version:[^\\\\]*@Id-Version: SME Server $ver (%f)@' %p\n" | sh
118  sed -i 's@Project-Id-Version.*\\n@Project-Id-Version: Contrib Panels\\n@' /etc/pootle/tmp/sme7cp/*/*.po      find /var/lib/pootle/tmp/contribs$ver/ -name '*.po' -printf "sed -i 's@Id-Version:[^\\\\]*@Id-Version: SME Contribs $ver (%f)@' %p\n" | sh
119    done
120    
121  # Move files that have changed  # Move files that have changed
122  for chk in $(find /etc/pootle/tmp/sme* -type f)  for chk in $(find /var/lib/pootle/tmp/{sme,contribs}[0-9]/ -type f)
123  do  do
124      diffmv $chk $(echo $chk | sed 's@/tmp/@/po/@')      diffmv $chk $(echo $chk | sed 's@/tmp/@/po/@')
125  done  done
126    
127  # Copy po files so we can create error reports  # Copy po files so we can create error reports
128  rsync -amR --include '*/' --include '*.po' --exclude '*' /etc/pootle/po/./sme*/ /etc/pootle/tmp/errors/  rsync -amR --include '*/' --include '*.po' --exclude '*' /var/lib/pootle/po/./{sme,contribs}[0-9]/ /var/lib/pootle/tmp/errors/
 find /etc/pootle/tmp/errors/ -type f -exec sed -i '/^#~/d' {} \+  
129    
130  #==========================================================  #==========================================================
131    
132  # Recalculate stats and restart server  # Recalculate stats and restart server
133  cd /etc/pootle  /usr/sbin/PootleServer --refreshstats &> /dev/null
 PootleServer --refreshstats &> /dev/null  
 nohup PootleServer --prefsfile /etc/pootle/pootle.prefs >> /var/log/pootle.log 2>&1 &  
134    
135  #==========================================================  #==========================================================
136    
 cd /etc/pootle/tmp  
   
137  # Create error compendium to assist translators  # Create error compendium to assist translators
138  for lang in $(ls /etc/pootle/tmp/errors/sme* | grep '[[:alpha:]]$' | sort -u)  find /var/lib/pootle/tmp/errors/ -type f -exec sed -i '/^#~/d' {} \+
139    for lang in $(ls -I templates /var/lib/pootle/po/{sme,contribs}[0-9] 2> /dev/null | grep '[[:alpha:]]$' | sort -u)
140  do  do
141      pocompendium -e errors-$lang.po -d /etc/pootle/tmp/errors/sme*/$lang      msgcat $(find /var/lib/pootle/tmp/errors/*/$lang/ -name '*.po') \
142      sed -i '0,/^$/d;/^#~/d' errors-$lang.po      | msgattrib --only-fuzzy \
143      sed -i ':a;/^\n*$/{$d;N;ba;}' errors-$lang.po      | sed '0,/^$/d;/^#~/d' \
144        | sed ':a;/^\n*$/{$d;N;ba;}' \
145        > errors-$lang.po
146      chmod 644 errors-$lang.po      chmod 644 errors-$lang.po
147      diffmv errors-$lang.po /var/www/html/errors/errors-$lang.po      diffmv errors-$lang.po /var/www/html/errors/errors-$lang.po
148  done  done
149    
150  # Build diffs for languages  # Build diffs for languages
151  for lang in $(ls /etc/pootle/po/sme7bp -I templates)  for pkg in $(ls /var/lib/pootle/po/{sme,contribs}[0-9]/templates/ | sed -n 's@\.pot@@p' | sort -u)
152  do  do
153      # Build anaconda files      pkgs=$(find /var/lib/pootle/cvs/*/*/*/*/root/etc/e-smith/locale/en-us -name $pkg -not -regex '.*\+ldap/.*')
154      mkdir -p /var/www/html/anaconda/sme7/$lang/LC_MESSAGES      if [ -z "$pkgs" ]
     anacondagen sme7 $lang > /var/www/html/anaconda/sme7/$lang/LC_MESSAGES/anaconda.mo  
     [ -s /var/www/html/anaconda/sme7/$lang/LC_MESSAGES/anaconda.mo ] || rm -rf /var/www/html/anaconda/sme7/$lang  
   
     mkdir -p /var/www/html/anaconda/sme8/$lang/LC_MESSAGES  
     anacondagen sme8 $lang > /var/www/html/anaconda/sme8/$lang/LC_MESSAGES/anaconda.mo  
     [ -s /var/www/html/anaconda/sme8/$lang/LC_MESSAGES/anaconda.mo ] || rm -rf /var/www/html/anaconda/sme8/$lang  
   
     # Build console files  
     pkgname=$(ls -d /etc/pootle/cvs/smeserver/smeserver-locale/*7/*/root | cut -d/ -f8)  
     mkdir -p ${pkgname}.update/po/$lang  
     for pkg in $(ls /etc/pootle/po/sme7bc/templates/ -I anaconda.pot | sed -n 's@\.pot@\.po@p')  
     do  
         msgcat -F --no-wrap /etc/pootle/po/sme7bc/$lang/$pkg \  
         | grep -v 'Project-Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|X-Generator' \  
         | sed '0,/msgid ""/{/^#/d};/^#,/d' \  
         > ${pkgname}.update/po/$lang/$pkg  
     done  
   
     # Build sme7admin file  
     pkgname=$(ls -d /etc/pootle/cvs/smecontribs/smeserver-sme7admin/*7/*/root | cut -d/ -f8)  
     mkdir -p ${pkgname}.update/po/$lang  
     msgcat -F --no-wrap /etc/pootle/po/sme7cp/$lang/sme7admin.po \  
     | grep -v 'Project-Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|X-Generator' \  
     | sed '0,/msgid ""/{/^#/d};/^#,/d' \  
     > ${pkgname}.update/po/$lang/sme7admin.po  
 done  
   
 # Build translated xml files  
 for pkg in $(ls /etc/pootle/po/sme7*p/templates/ -I sme7admin.pot | sed -n 's@\.pot@@p')  
 do  
     pkgname=$(find /etc/pootle/cvs/smecontribs/*/*7/*/root/etc/e-smith/locale/en-us -name $pkg | cut -d/ -f8)  
     if [ -z "$pkgname" ]  
155      then      then
156          if [ -z "$(find /etc/pootle/cvs/smeserver/*/*7/*/root/etc/e-smith/locale/en-us -name $pkg)" ]          if [ $pkg == "anaconda" ]
157          then          then
158              echo -e "\n *** Can't find package for $pkg ***\n"              ls /var/lib/pootle/po/*/*/$pkg.po | cut -d/ --output-delimiter " " -f6,7 | while read ver lang
159              continue              do
160          fi                  mkdir -p /var/www/html/anaconda/$ver/$lang/LC_MESSAGES
161          pkgname=$(ls -d /etc/pootle/cvs/smeserver/smeserver-locale/*7/*/root | cut -d/ -f8)                  anacondagen $ver $lang > /var/www/html/anaconda/$ver/$lang/LC_MESSAGES/anaconda.mo
162                    [ -s /var/www/html/anaconda/$ver/$lang/LC_MESSAGES/anaconda.mo ] || rm -rf /var/www/html/anaconda/$ver/$lang
163                done
164            else
165                pkgs=$(ls -d /var/lib/pootle/cvs/*/smeserver-$pkg/*/*/root 2> /dev/null)
166                [ -z "$pkgs" ] && pkgs=$(ls -d /var/lib/pootle/cvs/*/smeserver-locale/*/*/root)
167    
168                echo "$pkgs" | cut -d/ --output-delimiter " " -f8,9 | while read ver pkgname
169                do
170                    for lang in $(ls -I templates /var/lib/pootle/po/$ver/ 2> /dev/null | grep '[[:alpha:]]$' | sort -u)
171                    do
172                        mkdir -p diff/$ver/${pkgname}.update/po/$lang
173                        msgcat -F --no-wrap /var/lib/pootle/po/$ver/$lang/${pkg}.po \
174                        | grep -v 'Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|X-Generator' \
175                        | sed '0,/msgid ""/{/^#/d};/^#,/d;s@^\(#: \)[^/]\+/root@\1root@' \
176                        > diff/$ver/${pkgname}.update/po/$lang/${pkg/backup-console/backup}.po
177                    done
178                done
179            fi
180      else      else
181          mkdir -p ${pkgname}.update/$(localedir en-us $pkg)          echo "$pkgs" | grep -qv '/contribs[0-9]/' && pkgs=$(echo "$pkgs" | grep '/contribs[0-9]/'; ls -d /var/lib/pootle/cvs/*/smeserver-locale/*/*/root)
182          cat /etc/pootle/templates/$pkg.orig \          echo "$pkgs" | cut -d/ --output-delimiter " " -f8,9 | while read ver pkgname
183          | perl -pe 's@_AMP_@&@g;s@_{_@<@g;s@_}_@>@g' \          do
184          > ${pkgname}.update/$(localedir en-us $pkg)/$pkg              if echo $ver | grep -q contribs
185                then
186                    mkdir -p diff/$ver/${pkgname}.update/$(localedir en-us $pkg)
187                    cat /var/lib/pootle/templates/$ver/$pkg.orig \
188                    | perl -pe 's@_AMP_@&@g;s@_{_@<@g;s@_}_@>@g' \
189                    > diff/$ver/${pkgname}.update/$(localedir en-us $pkg)/$pkg
190                fi
191                for lang in $(ls -I templates /var/lib/pootle/po/$ver/ 2> /dev/null | grep '[[:alpha:]]$' | sort -u)
192                do
193                    mkdir -p diff/$ver/${pkgname}.update/$(localedir $lang $pkg)
194                    xmlgen $ver /var/lib/pootle/po/$ver/$lang/${pkg}.po \
195                    > diff/$ver/${pkgname}.update/$(localedir $lang $pkg)/$pkg
196                done
197            done
198      fi      fi
     for lang in $(ls /etc/pootle/po/sme7bp -I templates)  
     do  
         mkdir -p ${pkgname}.update/$(localedir $lang $pkg)  
         xmlgen /etc/pootle/po/sme7*p/$lang/${pkg}.po \  
         > ${pkgname}.update/$(localedir $lang $pkg)/$pkg  
     done  
199  done  done
200    
201  # Build xml diffs  # Build diffs
202  for pkg in $(ls -d *.update | sed 's@.update$@@')  ls -d diff/*/* | sed 's@.update$@@' | cut -d/ --output-delimiter " " -f2,3 | while read ver pkg
203  do  do
204      rm -f /var/www/html/patches/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch      mkdir -p /var/www/html/patches/$ver
205      [ -d $pkg.update/root/etc/e-smith/locale ] || continue      rm -f /var/www/html/patches/$ver/$(echo $pkg | sed 's/-[^-]\+$//')-*-locale-*.patch
206      orig=/etc/pootle/cvs/sme*/*/*7/$pkg/root/etc/e-smith/locale      if [ -d "diff/$ver/$pkg.update/root" ]
207      diff -ruN $orig $pkg.update/root/etc/e-smith/locale \      then
208      | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \          diff -ruN {/var/lib/pootle/cvs/*/*/$ver/$pkg,diff/$ver/$pkg.update}/root/etc/e-smith/locale \
209      > /var/www/html/patches/$pkg-locale-$(date +%F).patch          | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/root/.*\)@\1 \2@;/^diff -ruN/d' \
210  done          >> /var/www/html/patches/$ver/$pkg-locale-$(date +%F).patch
211        fi
212  # Build console diffs      if [ -d "diff/$ver/$pkg.update/po" ]
213  pkg=$(ls -d smeserver-locale-* | sed 's@.update$@@')      then
214  orig=/etc/pootle/cvs/smeserver/smeserver-locale/*7/$pkg/po          diff -ruN {/var/lib/pootle/cvs/*/*/$ver/$pkg,diff/$ver/$pkg.update}/po \
215  diff -ruN $orig $pkg.update/po \          | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \
216  | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \          >> /var/www/html/patches/$ver/$pkg-locale-$(date +%F).patch
217  >> /var/www/html/patches/$pkg-locale-$(date +%F).patch      fi
218    done
 # Build sme7admin diff  
 pkg=$(ls -d smeserver-sme7admin-* | sed 's@.update$@@')  
 orig=/etc/pootle/cvs/smecontribs/smeserver-sme7admin/*7/$pkg/po  
 diff -ruN $orig $pkg.update/po \  
 | sed 's@^\(---\|+++\) [^ ]\+/\([^/]\+/po/.*\)@\1 \2@;/^diff -ruN/d' \  
 >> /var/www/html/patches/$pkg-locale-$(date +%F).patch  
219    


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