lua-mode-remove.sh 609 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh -e
  2. # /usr/lib/emacsen-common/packages/remove/lua-mode
  3. FLAVOR=$1
  4. PACKAGE=lua-mode
  5. STARTDIR=/etc/${FLAVOR}/site-start.d
  6. STARTFILE="${PACKAGE}-init.el"
  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. ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
  16. case "${FLAVOR}" in
  17. *)
  18. echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
  19. rm -rf ${ELCDIR}
  20. rm -f ${STARTDIR}/95${STARTFILE}*
  21. echo " done."
  22. ;;
  23. esac
  24. exit 0