[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: l10n-kde4/scripts/autogen.sh bug in trunk/branch since 4.0
From:       Burkhard =?iso-8859-1?q?L=FCck?= <lueck () hube-lueck ! de>
Date:       2010-03-05 12:14:24
Message-ID: 201003051314.24914.lueck () hube-lueck ! de
[Download RAW message or body]

Am Mittwoch, 3. März 2010 13:34:38 schrieb Burkhard Lück:
> Hi,
> 
> autogen.sh is buggy and does not generate proper CMakeLists.txt for certain
> certain language docs.
> 
> This happens in any case where a folder has subfolders and an index.docbook
> file, then only the subfolders are added to CMakeLists.txt but the
> kde4_create_handbook macro call is missing.
> That means some translated language docbooks are not installed since 2
>  years.
> 
Attached patch installs the missing docbooks.

Please review/improve.

-- 
Burkhard Lück

["autogen.sh.diff" (text/x-patch)]

Index: l10n-kde4/scripts/autogen.sh
===================================================================
--- l10n-kde4/scripts/autogen.sh	(Revision 1098268)
+++ l10n-kde4/scripts/autogen.sh	(Arbeitskopie)
@@ -25,6 +25,11 @@
   rm -f $dir_local/CMakeLists.txt;
   for subdir in $list_dir; do
       echo "add_subdirectory( $subdir )" >> $dir_local/CMakeLists.txt
+      if test -f $dir_local/index.docbook; then
+          if ! grep -q "kde4_create_handbook" $dir_local/CMakeLists.txt; then
+              echo "kde4_create_handbook(index.docbook INSTALL_DESTINATION \
\${HTML_INSTALL_DIR}/\${CURRENT_LANG}/ )" >> $dir_local/CMakeLists.txt; +          fi
+      fi
       add_cmake_files_doc $dir_local/$subdir;
       case $subdir in
            common)



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic