3 . `dirname $0`/../config.sh
5 test -d ${archivedir} || mkdir -p ${archivedir}
8 if [ -z "${localdir}" ] || [ -n "$ddtp_ftpsite" ]
10 if [ -z "$ddtp_ftpsite" ]
12 ddtp_ftpsite="$ftpsite"
14 echo using remote mirror $ddtp_ftpsite
19 test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n
20 for lang in $ddtplangs
22 locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e')
23 echo "retrieve translated Descs $dist/$part/$lang ($locale)"
24 (cd us/${dist}/${part}/i18n &&
25 $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz)
30 echo using local mirror
35 test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n
36 for lang in $ddtplangs
38 echo retrieve translated Descs $dist/$part/$lang
39 rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$lang.gz \
40 us/${dist}/${part}/i18n/Translation-$lang.gz