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

« back to all changes in this revision

Viewing changes to conffiles.d/ktouch.postinst

  • 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';
24
20
               '4:3.1.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 = "ktouch";
31
27
my $package = "ktouch";
36
32
 
37
33
    # Execute the corresponding script
38
34
    $script = "$LIB/$release/".$script;
39
 
    print "Running $script $lang\n" if $debug;
 
35
    log_msg("$0: Running $script $lang");
40
36
    system ($script, $lang) if -x $script;
41
37
}
42
38