tc-el-remove.sh 616 B

12345678910111213141516171819
  1. #!/bin/sh -e
  2. # /usr/lib/emacsen-common/packages/remove/tc-el
  3. FLAVOR=$1
  4. PACKAGE=tc-el
  5. ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
  6. STARTDIR=/etc/${FLAVOR}/site-start.d
  7. STARTFILE="${PACKAGE}-init.el"
  8. if [ ${FLAVOR} != emacs ]; then
  9. # if test -x /usr/sbin/install-info-altdir; then
  10. # echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
  11. # install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/t-code.info.gz
  12. # fi
  13. echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
  14. rm -rf ${ELCDIR}
  15. rm -f ${STARTDIR}/95${STARTFILE}*
  16. echo " done."
  17. fi