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

List:       kde-commits
Subject:    playground/utils/createtarball
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2008-07-15 23:33:00
Message-ID: 1216164780.890752.7873.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 833004 by toma:

- Add konq-plugins to the release script so it will get release with each kde release \
                from now on.
- Adjust the script to fetch the whole i18n folder, instead of individual po files in \
                case of whole folder tarballs.
- Need to work on fetching the translated documentation.


 M  +7 -0      config.ini  
 M  +21 -13    create_tarball.rb  


--- trunk/playground/utils/createtarball/config.ini #833003:833004
@@ -98,3 +98,10 @@
 mainmodule  = extragear
 submodule   = utils
 kde_release = yes
+
+[konq-plugins]
+mainmodule  = extragear
+submodule   = base
+kde_release = yes
+wholeModule = yes
+
--- trunk/playground/utils/createtarball/create_tarball.rb #833003:833004
@@ -280,22 +280,30 @@
 
             for dg in appdata["addPo"]
                 dg.chomp!
-                pofilename = \
"l10n-kde4/#{lang}/messages/#{appdata["mainmodule"]}-#{appdata["submodule"]}/#{dg}.po"
                
-                `svn cat #{svnroot}/#{pofilename} 2> /dev/null | tee l10n/#{dg}.po`
-                next if FileTest.size( "l10n/#{dg}.po" ) == 0
+                if appdata["wholeModule"]
+                    print "  -> Copying #{lang}'s over ..\n"
+                    pofolder = \
"l10n-kde4/#{lang}/messages/#{appdata["mainmodule"]}-#{appdata["submodule"]}" +       \
`svn co #{svnroot}/#{pofolder} #{dest}` +                    next if \
!FileTest.exist?( dest ) +                else
+                    pofilename = \
"l10n-kde4/#{lang}/messages/#{appdata["mainmodule"]}-#{appdata["submodule"]}/#{dg}.po"
 +                    `svn cat #{svnroot}/#{pofilename} 2> /dev/null | tee \
l10n/#{dg}.po` +                    next if FileTest.size( "l10n/#{dg}.po" ) == 0
+                    
+                    if !FileTest.exist?( dest )
+                        Dir.mkdir( dest )
+                    end
 
-                if !FileTest.exist?( dest )
-                    Dir.mkdir( dest )
-                    makefile = File.new( "#{dest}/CMakeLists.txt", File::CREAT | \
                File::RDWR | File::TRUNC )
-                    makefile << "file(GLOB _po_files *.po)\n"
-                    makefile << "GETTEXT_PROCESS_PO_FILES( #{lang} ALL \
                INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} )\n"
-                    makefile.close()
-                    topmakefile << "add_subdirectory( #{lang} )\n"
+                    print "  -> Copying #{lang}'s #{dg}.po over ..  "
+                    `mv l10n/#{dg}.po #{dest}`
+                    puts( "done.\n" )
                 end
 
-                print "  -> Copying #{lang}'s #{dg}.po over ..  "
-                `mv l10n/#{dg}.po #{dest}`
-                puts( "done.\n" )
+                makefile = File.new( "#{dest}/CMakeLists.txt", File::CREAT | \
File::RDWR | File::TRUNC ) +                makefile << "file(GLOB _po_files *.po)\n"
+                makefile << "GETTEXT_PROCESS_PO_FILES( #{lang} ALL \
INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} )\n" +                \
makefile.close() +                topmakefile << "add_subdirectory( #{lang} )\n"
             end
         end
         topmakefile.close()


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

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