home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / sbin / update-dictcommon-aspell < prev    next >
Encoding:
Text File  |  2006-12-19  |  815 b   |  44 lines

  1. #!/usr/bin/perl -w
  2.  
  3. use Debian::DictionariesCommon q(:all);
  4.  
  5. die "  $0: You must run this as root.\n" if ($> != 0);
  6.  
  7. my $cachedir   = "/var/cache/dictionaries-common";
  8. my $class      = "aspell";
  9. my %locales    = ();
  10.  
  11. updatedb ($class);
  12. build_emacsen_support ();
  13.  
  14. system ("aspell-autobuildhash") == 0
  15.     or die "Error running aspell-autobuildhash\n";
  16.  
  17. __END__
  18.     
  19. =head1 NAME
  20.  
  21. update-dictcommon-aspell - rebuild aspell database and emacsen stuff
  22.  
  23. =head1 SYNOPSIS
  24.  
  25.  update-dictcommon-aspell
  26.  
  27. =head1 DESCRIPTION
  28.  
  29. WARNING: Not to be used from the command line unless you know very well what you are doing. 
  30.  
  31. This script, when called from aspell dict package postinst or postrm will 
  32. rebuild aspell database and emacsen stuff
  33.  
  34.  
  35. =head1 SEE ALSO
  36.  
  37. The dictionaries-common policy
  38.  
  39. =head1 AUTHORS
  40.  
  41. Rafael Laboissiere
  42.  
  43. =cut
  44.