2
# The wrapper script for ispell (pre-install)
3
# Actually this preseeds the dictionaries-common package
11
# Get command line options
12
GetOptions("debug" => \$debug);
14
# We use methods in common.pl
15
require '/usr/lib/localization-config/common/common.pl';
17
# The path where the scripts are kept
18
my $LIB = '/usr/lib/localization-config';
20
# call init() to initialize the APT config system
26
# Define the version map for dictionaries-common
27
my %vermap = ( '0.20-1', => { RELEASE => 'sarge' }
30
my $script = "dictionaries-common";
31
my $package = "dictionaries-common";
33
# Get appropriate release for this package
34
my $release = get_release($package, %vermap);
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;