From 1ed1338d28ba3ef94d55ffc9751fc312e6eafa05 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 16 Jun 2007 21:51:10 +0200 Subject: [PATCH] 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. --- cron.d/120synctrans | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 cron.d/120synctrans 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 -- 2.39.2