home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / debian / prerm < prev    next >
Text File  |  2000-12-16  |  852b  |  34 lines

  1. #!/bin/sh
  2. # prerm script for webcleaner
  3. #
  4. # see: dh_installdeb(1)
  5. set -e
  6.  
  7. # summary of how this script can be called:
  8. #        * <prerm> `remove'
  9. #        * <old-prerm> `upgrade' <new-version>
  10. #        * <new-prerm> `failed-upgrade' <old-version>
  11. #        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  12. #        * <deconfigured's-prerm> `deconfigure' `in-favour'
  13. #          <package-being-installed> <version> `removing'
  14. #          <conflicting-package> <version>
  15. # for details, see /usr/doc/packaging-manual/
  16.  
  17. PACKAGE=webcleaner
  18.  
  19. dpkg --listfiles $PACKAGE |
  20.         awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
  21.         xargs rm -f >&2
  22.  
  23. rmdir /usr/lib/python1.5/site-packages/webfilter 2>/dev/null || true
  24.  
  25.  
  26. # dh_installdeb will replace this with shell code automatically
  27. # generated by other debhelper scripts.
  28.  
  29. #DEBHELPER#
  30.  
  31. exit 0
  32.  
  33.  
  34.