bin/compile-mo-files.sh: create the civicrm-l10n-daily.tar.gz and publish on download.civicrm.org

parent fb9e8c36
......@@ -66,9 +66,21 @@ else
user=`whoami`
if [ "$user" = "l10n" ]; then
for i in $(cat conf/distributed_languages.txt); do
mkdir -p workdir/l10n/$i/LC_MESSAGES
cp mo/$i/civicrm.mo workdir/l10n/$i/LC_MESSAGES/
done
pushd workdir
tar cfvz civicrm-l10n-daily.tar.gz l10n
md5sum civicrm-l10n-daily.tar.gz > civicrm-l10n-daily.tar.gz.MD5SUMS
scp civicrm-l10n-daily.tar.gz l10n@download.civicrm.org:/var/www/download.civicrm.org/public/civicrm-l10n-core/archives/
scp civicrm-l10n-daily.tar.gz.MD5SUMS l10n@download.civicrm.org:/var/www/download.civicrm.org/public/civicrm-l10n-core/archives/
rm civicrm-l10n-daily.tar.gz*
popd
echo -n "Rsync to download.civicrm.org ... "
rsync --delete -ra mo l10n@download.civicrm.org:/var/www/download.civicrm.org/public/civicrm-l10n-core/
echo "done!"
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment