svndoc.sh 818 Bytes
Newer Older
1
#!/bin/bash
2 3 4
getlocale() {
    local locale=$1
    wget -O $locale.docbook "http://websvn.kde.org/*checkout*/trunk/l10n-kde4/$locale/docs/extragear-multimedia/kdenlive/index.docbook"
5 6
    if [ $? -eq 0 ] ; then
        mkdir $locale
7
        mv $locale.docbook $locale/index.docbook
8 9
        echo "KDE4_CREATE_HANDBOOK(index.docbook INSTALL_DESTINATION \${HTML_INSTALL_DIR}/$locale SUBDIR kdenlive)" > $locale/CMakeLists.txt
        echo "ADD_SUBDIRECTORY($locale)" >> CMakeLists.txt
10 11
    else
        rm $locale.docbook
12
    fi
13 14 15 16 17 18 19
}
[ -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 &
20 21
done