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

« back to all changes in this revision

Viewing changes to conffiles.d/ispell.preinst

  • 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 ispell (pre-install)
 
3
# Actually this preseeds the dictionaries-common package
 
4
 
 
5
use strict;
 
6
use warnings;
 
7
use Getopt::Long;
 
8
 
 
9
my $debug;
 
10
 
 
11
# Get command line options
 
12
GetOptions("debug" => \$debug);
 
13
 
 
14
# We use methods in common.pl
 
15
require '/usr/lib/localization-config/common/common.pl';
 
16
 
 
17
# The path where the scripts are kept
 
18
my $LIB = '/usr/lib/localization-config';
 
19
 
 
20
# call init() to initialize the APT config system
 
21
init();
 
22
 
 
23
# Get locale entry
 
24
my $lang = shift;
 
25
 
 
26
# Define the version map for dictionaries-common
 
27
my %vermap = ( '0.20-1',     => { RELEASE => 'sarge' }
 
28
              );
 
29
 
 
30
my $script = "dictionaries-common";
 
31
my $package = "dictionaries-common";
 
32
 
 
33
# Get appropriate release for this package
 
34
my $release = get_release($package, %vermap);
 
35
 
 
36
# Execute the corresponding script
 
37
$script = "$LIB/$release/".$script;
 
38
print "Running $script $lang\n" if $debug;
 
39
system ($script, $lang) if -x $script;
 
40
 
 
41
1;