Re: Fw: Re: [PATCH] Adding coordination pages to the web site po-debconf l10n statistics
On Tue, Sep 16, 2008 at 09:08:51PM -0700, Matt Kraai wrote:
> On Tue, Sep 16, 2008 at 10:34:08PM +0200, Simon Paillard wrote:
> > Could someone apply the following patch to lessoften crontab, and check that
> > the data are made available ?
>
> When I ran the wget command twice by hand in a temporary directory,
> the second run produced a bunch of files ending with ".1". Is this
> intentional?
That is not :)
Here is a fixed patch for that.
--
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 -N -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 \{\} \;
Reply to: