~ubuntu-branches/ubuntu/oneiric/localization-config/oneiric

« back to all changes in this revision

Viewing changes to conffiles.d/gdm.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2004-12-10 19:10:18 UTC
  • Revision ID: james.westby@ubuntu.com-20041210191018-wdjfbljdie570dld
Tags: 0.109
* Translations
  - Added Finnish by Tapio Lehtonen. Closes: #281040
  - Fixed Spanish translation (was too long). Closes: #284570

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
# The wrapper script for KDE (post-install)
 
3
 
 
4
# exit for now, this functionality exists in base-config.
 
5
 
 
6
exit;
 
7
 
 
8
use strict;
 
9
use warnings;
 
10
use Getopt::Long;
 
11
 
 
12
my $debug;
 
13
 
 
14
# Get command line options
 
15
GetOptions("debug" => \$debug);
 
16
 
 
17
# Get lang entry
 
18
my $lang = $ARGV[0] or die "No language given";
 
19
 
 
20
# We use methods in common.pl
 
21
require '/usr/lib/localization-config/common/common.pl';
 
22
 
 
23
# The path where the scripts are kept
 
24
my $LIB = '/usr/lib/localization-config';
 
25
 
 
26
# call init() to initialize the APT config system
 
27
init();
 
28
 
 
29
# Define the version map for kdebase
 
30
my %vermap = ( '2.2.0-1',     => { RELEASE => 'woody' },
 
31
               '2.4.0-1',     => { RELEASE => 'sarge' }
 
32
              );
 
33
 
 
34
my $script = "gdm";
 
35
my $package = "gdm";
 
36
 
 
37
#if (is_installed($package)) {
 
38
    # Get appropriate release for this package
 
39
    my $release = get_release($package, %vermap);
 
40
 
 
41
    # Execute the corresponding script
 
42
    $script = "$LIB/$release/".$script;
 
43
    print "Running $script $lang\n" if $debug;
 
44
    system ($script, $lang) if -x $script;
 
45
#}
 
46
 
 
47
1;