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

Re: Notification about outdated translations by email doesn't work



On Mon, Dec 27, 2004 at 11:41:49PM +0100, Juraj Kubelka wrote:
> Hi!
> 
> Can you help me? I think I'm not notified about changes in webwml by
> email.
> 
> There are outdated pages:
> 
> http://www.debian.org/devel/website/stats/cs.html#outdated
> 
> There is translator.db.pl file for Czech translations:
> 
> http://cvs.debian.org/webwml/czech/international/czech/translator.db.pl?rev=1.3&cvsroot=webwml&content-type=text/vnd.viewcvs-markup

There are no automatic notifications.  Here are files derived from our
(=French team) setup:
  * czech/international/czech/Makefile: you can commit it
  * cron-webwml-mail: this script has to be run daily on a machine with
    webwml checkout (at least english, czech and Perl directories, plus
    some scripts on top-level directory).  Replace <address_for_orphaned_pages>
    by a valid address, and test this script: IIRC you can add -g flag
    and replace default address (i.e. after -m flag) with yours, you
    then receive all mails.

Denis
WMLBASE=../..
CUR_DIR=international/czech

include $(WMLBASE)/Make.lang

check_trans.status: FORCE
	:> $@.new
	echo '#  File automatically generated with the following command:' >> $@.new
	echo '#    ../../../check_trans.pl -C ../../.. -t perl czech > $@' >> $@.new
	echo '#  DO NOT EDIT!' >> $@.new
	../../../check_trans.pl -C ../../.. -t perl czech >> $@.new
	if [ -f $@ ]; then \
		cmp $@ $@.new >/dev/null 2>&1 \
		|| mv $@.new $@; \
	else \
		mv $@.new $@; \
	fi
	-rm -f $@.new >/dev/null 2>&1

.PHONY: FORCE

#! /bin/sh -e

#   cron-webwml-mail:  send notification mails to translators

d1=`date +"%d"`
d2=`date +"%w"`
if   [ "x$d1" == "x1" ] ; then
   freq=1;
elif [ "x$d2" == "x5" ] ; then
   freq=2;
else
   freq=3;
fi

cd webwml
cvs -q update -P -d
make -C czech/international/czech check_trans.status
./check_trans.pl -Q -q -m <address_for_orphaned_pages> -n $freq -c iso-8859-2 czech


Reply to: