File: update-dictcommon.in

package info (click to toggle)
dictionaries-common 1.31.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,128 kB
  • sloc: lisp: 5,521; perl: 3,163; sh: 199; makefile: 179
file content (52 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/perl -w

use strict;
use Debian::DictionariesCommon q(:all);

dico_checkroot ();

my $cachedir   = "/var/cache/dictionaries-common";
my $class      = "[A:aspell:][H:hunspell:]";
my %locales    = ();

updatedb ($class);
build_emacsen_support ();
build_squirrelmail_support ();
# [A:
build_jed_support ();

# Clean orphaned remove files and its contents.
my $dictionaries = loaddb ($class);
dico_clean_orphaned_removefiles($class,$dictionaries);

system ("aspell-autobuildhash") == 0
    or die "Error running aspell-autobuildhash\n";
#:A]

__END__

=head1 NAME

update-dictcommon-[A:aspell:A][H:hunspell:] - rebuild [A:aspell:A][H:hunspell:] database and emacsen stuff

=head1 SYNOPSIS

 update-dictcommon-[A:aspell:A][H:hunspell:]

=head1 DESCRIPTION

WARNING: Not to be used from the command line unless you know very well what you are doing.

This script, when called from [A:aspell:A][H:hunspell:] dict package postinst or postrm will
rebuild [A:aspell:A][H:hunspell:] database as well as squirrelmail[A:, jed:A] and emacsen stuff.

=head1 SEE ALSO

The dictionaries-common policy

=head1 AUTHORS

Rafael Laboissiere,
Agustin Martin

=cut