[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fw: Re: [PATCH] Adding coordination pages to the web site po-debconf l10n statistics



Hello webmasters,

Could someone apply the following patch to lessoften crontab, and check that
the data are made available ?

Then, we will be able to apply the patch to the wml part.

Thanks in advance.

-- 
Simon Paillard
--- Begin Message ---
On Mon, Aug 25, 2008 at 09:31:25PM +0200, Simon Paillard wrote:
> On Wed, Aug 13, 2008 at 07:21:58AM +0200, Nicolas François wrote:
> > Here is a patch to the scripts (and data) used for the generation of the
> > l10n statistics on the web site.
> [...]
> > In addition to the patch, the status databases should be downloaded in
> > often from http://i18n.debian.net/debian-l10n/status/, and linked to
> > english/international/l10n/data/
> 
> Does you patch assume that fact ?
> It seems so, I commited too early..

Commit reverted to avoid breaking the stats..

> The lessoften part of the crontab needs to be adapated and written by a webmaster.
> http://cvs.debian.org/*checkout*/cron/lessoften?root=webwml

Patch attached again the "lessoften" file of the crontab should be ok. 

-- 
Simon Paillard
--- lessoften.orig	2008-08-25 21:23:02.757838206 +0200
+++ lessoften	2008-08-25 22:27:24.016483958 +0200
@@ -68,6 +68,13 @@
 cd $webtopdir/webwml/english/international/l10n
 ./scripts/list-languages.pl data/unstable.gluck > data/langs
 
+
+echo "updating the status files used to build l10n stats..." >> $crondir/lessoften.log
+wget -erobots=off -q -nd -r -l1 --no-parent -A"status.*" http://i18n.debian.net/debian-l10n/status/ || { echo "couldn't fetch status.*!" >> $crondir/lessoften.log; exit 1; }
+for status_file in status.* ; do 
+	ln -sf $crondir/datafiles/$status_file $webtopdir/webwml/english/international/l10n/data/$status_file
+done
+
 echo "cleaning up obsolete templates translation information" >> $crondir/lessoften.log
 cd $webdir/international/l10n
 find po po-debconf templates -type f -mtime +30 -exec rm -f \{\} \;

--- End Message ---

Reply to: