howm-remove.sh 658 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. FLAVOR=$1
  3. PACKAGE="howm"
  4. if [ "X${FLAVOR}" = "X" ]; then
  5. echo Need argument to determin FLAVOR of emacs;
  6. exit 1
  7. fi
  8. if [ "X${PACKAGE}" = "X" ]; then
  9. echo Internal error: need package name;
  10. exit 1;
  11. fi
  12. ELDIR=${EPREFIX}/usr/share/emacs/site-lisp/${PACKAGE}
  13. ELCDIR=${EPREFIX}/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
  14. STARTDIR=/etc/${FLAVOR}/site-start.d
  15. STARTFILE="${PACKAGE}-init.el";
  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}/50${STARTFILE}*;
  23. echo " done."
  24. ;;
  25. esac
  26. exit 0;