Buildsystem for Translators

Thomas Reitelbach tr at erdfunkstelle.de
Mon Apr 2 22:11:02 CEST 2007


Hello everyone,

thanks to Laurent, who implemented the buildsystem for trunk/l10n-kde4 for us 
translators.

Unfortunately I have trouble with it, and i hope you can help me. This is what 
i do:

In trunk/l10n-kde4/:
- ./scripts/autogen.sh de #->generates the CMakeLists.txt files for "de"
- cd de
- cmake -DCMAKE_INSTALL_PREFIX=/home/kde4/kde .
- cd messages
- make    #->builds all *.gmo files in all subdirectories
- make install #does only install entry.desktop, but no *.gmo files

I have patched my local KDE4Macros.cmake (see below) and now it works for me. 
But this was just try and error, so i have no idea of what i was doing ;-)

Index: KDE4Macros.cmake
===================================================================
--- KDE4Macros.cmake    (Revision 649517)
+++ KDE4Macros.cmake    (Arbeitskopie)
@@ -232,7 +232,7 @@
 endmacro(KDE4_CREATE_PO_FILES)

 macro(KDE4_INSTALL_PO_FILES _lang)
-   file(GLOB _po_files ${CMAKE_CURRENT_BINARY_DIR}/*.gmo)
+   file(GLOB _po_files *.gmo)
    foreach(_current_PO_FILES ${_po_files})
        get_filename_component(_basename ${_current_PO_FILES} NAME_WE)
        install(FILES ${_current_PO_FILES} DESTINATION 
${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME ${_basename}.mo)

Am i doing something wrong or is there a failure in the script?

Cheers
Thomas

-- 
There are 10 kind of people. Those who understand binary, and those 
who don't.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070402/2b77e5f4/attachment.pgp 


More information about the Kde-buildsystem mailing list