~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to core/project/release/fetch_l10n.rb

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Rohan Garg, Philip Muškovac, Felix Geyer
  • Date: 2011-09-23 18:18:55 UTC
  • mfrom: (1.2.36 upstream)
  • Revision ID: package-import@ubuntu.com-20110923181855-ifs67wxkugshev9k
Tags: 2:2.1.1-0ubuntu1
[ Rohan Garg ]
* New upstream release (LP: #834190)
  - debian/control
    + Build with libqtwebkit-dev
 - debian/kipi-plugins-common
    + Install libkvkontakte required by kipi-plugins
 - debian/digikam
    + Install panoramagui

[ Philip Muškovac ]
* New upstream release
  - debian/control:
    + Add libcv-dev, libcvaux-dev, libhighgui-dev, libboost-graph1.46-dev,
      libksane-dev, libxml2-dev, libxslt-dev, libqt4-opengl-dev, libqjson-dev,
      libgpod-dev and libqca2-dev to build-deps
    + Add packages for kipi-plugins, libmediawiki, libkface, libkgeomap and
      libkvkontakte
  - debian/rules:
    + Don't build with gphoto2 since it doesn't build with it.
  - Add kubuntu_fix_test_linking.diff to fix linking of the dngconverter test
  - update install files
  - update kubuntu_01_mysqld_executable_name.diff for new cmake layout
    and rename to kubuntu_mysqld_executable_name.diff
* Fix typo in digikam-data description (LP: #804894)
* Fix Vcs links

[ Felix Geyer ]
* Move library data files to the new packages libkface-data, libkgeomap-data
  and libkvkontakte-data.
* Override version of the embedded library packages to 1.0~digikam<version>.
* Exclude the library packages from digikam-dbg to prevent file conflicts in
  the future.
* Call dh_install with --list-missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env ruby
 
2
#
 
3
# Ruby script for generating Amarok tarball releases from KDE SVN
 
4
#
 
5
# (c) 2005 Mark Kretschmann <kretschmann@kde.org>
 
6
# Some parts of this code taken from cvs2dist
 
7
# License: GNU General Public License V2
 
8
 
 
9
 
 
10
branch = "trunk"
 
11
tag = ""
 
12
 
 
13
unless $*.empty?()
 
14
    case $*[0]
 
15
        when "--branch"
 
16
            branch = `kdialog --inputbox "Enter branch name: " "branches/stable"`.chomp()
 
17
        when "--tag"
 
18
            tag = `kdialog --inputbox "Enter tag name: "`.chomp()
 
19
        else
 
20
            puts("Unknown option #{$1}. Use --branch or --tag.\n")
 
21
    end
 
22
end
 
23
 
 
24
# Ask user for targeted application version
 
25
user = `kdialog --inputbox "Your SVN user:"`.chomp()
 
26
protocol = `kdialog --radiolist "Do you use https or svn+ssh?" https https 0 "svn+ssh" "svn+ssh" 1`.chomp()
 
27
 
 
28
puts "\n"
 
29
puts "**** l10n ****"
 
30
puts "\n"
 
31
 
 
32
i18nlangs = `cat subdirs`
 
33
Dir.mkdir( "po" )
 
34
Dir.chdir( "po" )
 
35
topmakefile = File.new( "CMakeLists.txt", File::CREAT | File::RDWR | File::TRUNC )
 
36
for lang in i18nlangs
 
37
    lang.chomp!()
 
38
    Dir.mkdir(lang)
 
39
    Dir.chdir(lang)
 
40
    for part in ['digikam']
 
41
        puts "Copying #{lang}'s #{part} over..  "
 
42
        `svn cat #{protocol}://#{user}@svn.kde.org/home/kde/#{branch}/l10n-kde4/#{lang}/messages/extragear-graphics/#{part}.po 2> /dev/null | tee #{part}.po `
 
43
 
 
44
        if FileTest.size( "#{part}.po" ) == 0
 
45
          File.delete( "#{part}.po" )
 
46
          puts "Delete File #{part}.po"
 
47
        end
 
48
 
 
49
        makefile = File.new( "CMakeLists.txt", File::CREAT | File::RDWR | File::TRUNC )
 
50
        makefile << "file(GLOB _po_files *.po)\n"
 
51
        makefile << "GETTEXT_PROCESS_PO_FILES( #{lang} ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} )\n"
 
52
        makefile.close()
 
53
                                                        
 
54
        puts( "done.\n" )
 
55
    end
 
56
    Dir.chdir("..")
 
57
    topmakefile << "add_subdirectory( #{lang} )\n"
 
58
end
 
59
 
 
60
puts "\n"