~ubuntu-branches/ubuntu/jaunty/localization-config/jaunty

« back to all changes in this revision

Viewing changes to conffiles.d/xfree86-kbd.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2005-05-23 00:36:51 UTC
  • Revision ID: james.westby@ubuntu.com-20050523003651-2xfe4l262j5ij3xa
Tags: 0.116
* Translatios
  - Bulgarian added. Closes: #308129
  - Updated Greek and Vietnamese. Closes: #309055
  - Fixed templates file that included extra test messages for session
  chooser
* Closes forgotten bugs. Closes: #306084, #306052.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
use warnings;
6
6
use Getopt::Long;
7
7
 
8
 
my $debug;
9
 
 
10
 
# Get command line options
11
 
GetOptions("debug" => \$debug);
12
 
 
13
8
# We use methods in common.pl
14
9
require '/usr/lib/localization-config/common/common.pl';
 
10
require '/usr/lib/localization-config/common/log.pl';
15
11
 
16
12
# The path where the scripts are kept
17
13
my $LIB = '/usr/lib/localization-config';
21
17
 
22
18
# Define the version map for xserver-xfree86
23
19
my %vermap = ( '4.1.0-1',     => { RELEASE => 'woody' },
24
 
                '4.3.0-1',     => { RELEASE => 'sarge' }
 
20
               '4.3.0-1',     => { RELEASE => 'sarge' }
25
21
              );
26
22
 
27
 
# Get locale entry
28
 
my $lang = shift;
 
23
# Get lang entry
 
24
my $lang = $ARGV[0] or log_die("$0: No language given");
29
25
 
30
26
my $script = "xfree86-kbd";
31
27
my $package = "xserver-xfree86";
35
31
 
36
32
# Execute the corresponding script
37
33
$script = "$LIB/$release/".$script;
38
 
print "Running $script $lang\n" if $debug;
 
34
log_msg("$0: Running $script $lang");
39
35
system ($script, $lang) if -x $script;
40
36
 
41
37
1;