emacsVER-bin-common.prerm 350 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -e
  3. FLAVOR=@DEB_FLAVOR@
  4. MAJOR=@MAJOR_VERSION@
  5. MINOR=@MINOR_VERSION@
  6. FULL=@FULL_VERSION@
  7. ALTERNATIVES="@ALTERNATIVES@"
  8. # update-alternatives on things that collide with xemacs, other editors
  9. if [ "$1" != "upgrade" ]
  10. then
  11. for i in ${ALTERNATIVES}
  12. do
  13. update-alternatives --remove $i /usr/bin/$i.${FLAVOR}
  14. done
  15. fi
  16. #DEBHELPER#