home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / emacsen-common / packages / remove / dictionaries-common
Encoding:
Text File  |  2006-07-12  |  817 b   |  31 lines

  1. #!/bin/sh
  2. #
  3. #     $Id: emacsen-remove,v 1.6 2005/11/10 13:55:20 agmartin Exp $    
  4. #
  5. # emacsen remove script for the Debian GNU/Linux
  6. # dictionaries-common package
  7. #
  8. # Written by Rafael Laboissiere <rafael@debian.org> and
  9. # Agustin Martin <agmartin@debian.org> based on 
  10. # Dirk Eddelbuettel <edd@debian.org> script for the octave package.
  11. # -----------------------------------------------------------------
  12.  
  13. set -e 
  14.  
  15. # Canadian spelling ;-)
  16. flavour=$1
  17.  
  18. # Do nothing for dummy 'emacs' flavour
  19. if [ ${flavour} = emacs ]; then exit 0; fi
  20.  
  21. package=dictionaries-common
  22. destination=/usr/share/${flavour}/site-lisp/${package}
  23.  
  24. if [ -d $destination ]; then
  25.     echo remove/${package}: Purging byte-compiled files for flavour ${flavour}
  26.     rm -f ${destination}/*.elc
  27.     rmdir --ignore-fail-on-non-empty ${destination}
  28. fi
  29.  
  30. exit 0;
  31.