X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;fp=cron.d%2F120synctrans;h=add4c3513a50937145669a38718c17eb927064d2;hb=1ed1338d28ba3ef94d55ffc9751fc312e6eafa05;hp=0000000000000000000000000000000000000000;hpb=fbf34c66a6f4782ffc1fdad8e26dbefb2a395229;p=deb%2Fpackages.git 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