rst-el-remove.sh 623 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh -e
  2. # /usr/lib/emacsen-common/packages/remove/rst-el
  3. FLAVOR=$1
  4. PACKAGE=rst-el
  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. emacs)
  18. ;;
  19. *)
  20. echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
  21. rm -rf ${ELCDIR}
  22. rm -f ${STARTDIR}/95${STARTFILE}*
  23. echo " done."
  24. ;;
  25. esac
  26. exit 0