wnn7egg-remove.sh 804 B

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