IIIMECF-remove.sh 872 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. # /usr/lib/emacsen-common/packages/remove/foo
  3. # [ This particular script hasn't been tested either, so be careful. ]
  4. set -e
  5. FLAVOR=$1
  6. PACKAGE="IIIMECF"
  7. if [ "X${FLAVOR}" = "X" ]; then
  8. echo Need argument to determin FLAVOR of emacs;
  9. exit 1
  10. fi
  11. if [ "X${PACKAGE}" = "X" ]; then
  12. echo Internal error: need package name;
  13. exit 1;
  14. fi
  15. ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
  16. ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
  17. STARTDIR=/etc/${FLAVOR}/site-start.d
  18. STARTFILE="${PACKAGE}-init.el";
  19. SITELISP=/usr/share/${FLAVOR}/site-lisp
  20. case "${FLAVOR}" in
  21. emacs)
  22. ;;
  23. # emacs20|emacs21|xemacs21)
  24. *)
  25. echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
  26. rm -rf ${ELCDIR}
  27. rm -f ${STARTDIR}/[0-9][0-9]${STARTFILE}*;
  28. echo " done."
  29. ;;
  30. *)
  31. ;;
  32. esac
  33. exit 0;