Commit 083d85ce authored by Vincent Pinon's avatar Vincent Pinon

update scripts to get translations on SVN

parent 2c0bb0f3
*~
build
CMakeLists.txt.user*
po-script/*/
po-script/CMakeLists.txt
po
doc/*/
doc/CMakeLists.txt
......@@ -77,7 +77,7 @@ set(MLT_PREFIX ${MLT_ROOT_DIR})
add_subdirectory(data)
macro_optional_add_subdirectory(doc)
add_subdirectory(plugins)
macro_optional_add_subdirectory(po-script)
macro_optional_add_subdirectory(po)
add_subdirectory(renderer)
add_subdirectory(src)
add_subdirectory(thumbnailer)
......
#!/bin/bash
locales=$(wget -O - http://websvn.kde.org/*checkout*/trunk/l10n-kde4/subdirs)
echo "KDE4_CREATE_HANDBOOK(index.docbook INSTALL_DESTINATION \${HTML_INSTALL_DIR}/en SUBDIR kdenlive)" > CMakeLists.txt
for locale in $locales; do
wget "http://websvn.kde.org/*checkout*/trunk/l10n-kde4/$locale/docs/extragear-multimedia/kdenlive/index.docbook"
getlocale() {
local locale=$1
wget -O $locale.docbook "http://websvn.kde.org/*checkout*/trunk/l10n-kde4/$locale/docs/extragear-multimedia/kdenlive/index.docbook"
if [ $? -eq 0 ] ; then
mkdir $locale
mv index.docbook $locale
mv $locale.docbook $locale/index.docbook
echo "KDE4_CREATE_HANDBOOK(index.docbook INSTALL_DESTINATION \${HTML_INSTALL_DIR}/$locale SUBDIR kdenlive)" > $locale/CMakeLists.txt
echo "ADD_SUBDIRECTORY($locale)" >> CMakeLists.txt
else
rm $locale.docbook
fi
}
[ -d doc ] || mkdir doc
cd doc
locales=$(wget -O - http://websvn.kde.org/*checkout*/trunk/l10n-kde4/subdirs | grep -v x-test)
echo "KDE4_CREATE_HANDBOOK(index.docbook INSTALL_DESTINATION \${HTML_INSTALL_DIR}/en SUBDIR kdenlive)" > CMakeLists.txt
for l in $locales; do
getlocale $l &
done
#!/bin/bash
locales=$(wget -O - http://websvn.kde.org/*checkout*/trunk/l10n-kde4/subdirs)
echo "find_package(Gettext REQUIRED)" > CMakeLists.txt
for locale in $locales; do
wget "http://websvn.kde.org/*checkout*/trunk/l10n-kde4/$locale/messages/extragear-multimedia/kdenlive.po"
getlocale() {
local locale=$1
wget -O $locale.po "http://websvn.kde.org/*checkout*/trunk/l10n-kde4/$locale/messages/extragear-multimedia/kdenlive.po"
if [ $? -eq 0 ] ; then
mkdir $locale
mv kdenlive.po $locale
mv $locale.po $locale/kdenlive.po
echo "GETTEXT_PROCESS_PO_FILES($locale ALL INSTALL_DESTINATION \${LOCALE_INSTALL_DIR} kdenlive.po)" >> $locale/CMakeLists.txt
echo "ADD_SUBDIRECTORY($locale)" >> CMakeLists.txt
else
rm $locale.po
fi
}
[ -d po ] || mkdir po
cd po
locales=$(wget -O - http://websvn.kde.org/*checkout*/trunk/l10n-kde4/subdirs | grep -v x-test)
echo "find_package(Gettext REQUIRED)" > CMakeLists.txt
for l in $locales; do
getlocale $l &
done
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