From: Frank Lichtenheld Date: Sat, 16 Jun 2007 19:51:10 +0000 (+0200) Subject: cron.d/120syntrans: retrieve DDTP descriptions again X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=1ed1338d28ba3ef94d55ffc9751fc312e6eafa05;p=deb%2Fpackages.git cron.d/120syntrans: retrieve DDTP descriptions again They are now on the official mirrors and there seems to be a real chance that the project gets revived again. So start supporting translated descriptions again. --- diff --git a/cron.d/120synctrans b/cron.d/120synctrans new file mode 100755 index 0000000..add4c35 --- /dev/null +++ b/cron.d/120synctrans @@ -0,0 +1,39 @@ +#! /bin/sh + +. `dirname $0`/../config.sh + +test -d ${archivedir} || mkdir -p ${archivedir} +cd ${archivedir} + +if [ -z "${localdir}" ] +then + echo using remote mirror + for dist in unstable + do + for part in main + do + test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n + for lang in $ddtplangs + do + echo retrieve translated Descs $dist/$part/$lang + (cd us/${dist}/${part}/i18n && + wget -q -N ${ftpsite}/dists/${dist}/${part}/i18n/Translations-$lang.gz) + done + done + done +else + echo using local mirror + for dist in unstable + do + for part in main + do + test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n + for lang in $ddtplangs + do + echo retrieve translated Descs $dist/$part/$lang + rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$lang.gz \ + us/${dist}/${part}/i18n/Translation-$lang.gz + done + done + done +fi