~ubuntu-branches/ubuntu/breezy/localization-config/breezy

« back to all changes in this revision

Viewing changes to conffiles.d/ispell.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:
6
6
use warnings;
7
7
use Getopt::Long;
8
8
 
9
 
my $debug;
10
 
 
11
 
# Get command line options
12
 
GetOptions("debug" => \$debug);
13
 
 
14
9
# We use methods in common.pl
15
10
require '/usr/lib/localization-config/common/common.pl';
 
11
require '/usr/lib/localization-config/common/log.pl';
16
12
 
17
13
# The path where the scripts are kept
18
14
my $LIB = '/usr/lib/localization-config';
20
16
# call init() to initialize the APT config system
21
17
init();
22
18
 
23
 
# Get locale entry
24
 
my $lang = shift;
 
19
# Get lang entry
 
20
my $lang = $ARGV[0] or log_die("$0: No language given");
25
21
 
26
22
# Define the version map for dictionaries-common
27
23
my %vermap = ( '0.20-1',     => { RELEASE => 'sarge' }
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;