git-remove.sh 698 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. # /usr/lib/emacsen-common/packages/remove/git
  3. set -e
  4. FLAVOR=$1
  5. PACKAGE="git"
  6. if [ "X${FLAVOR}" = "X" ]; then
  7. echo Need argument to determin FLAVOR of emacs;
  8. exit 1
  9. fi
  10. if [ "X${PACKAGE}" = "X" ]; then
  11. echo Internal error: need package name;
  12. exit 1;
  13. fi
  14. ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
  15. ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
  16. STARTDIR=/etc/${FLAVOR}/site-start.d
  17. STARTFILE="$PACKAGE-init.el";
  18. SITELISP=/usr/share/${FLAVOR}/site-lisp
  19. case "${FLAVOR}" in
  20. emacs|emacs19|mule)
  21. ;;
  22. *)
  23. echo -n "remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} ..."
  24. rm -rf ${ELCDIR}
  25. rm -f ${STARTDIR}/55${STARTFILE}*;
  26. echo " done."
  27. ;;
  28. esac
  29. exit 0;