emacsVER.postinst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. set -e
  3. FLAVOR=@DEB_FLAVOR@
  4. update-alternatives \
  5. --install /usr/bin/emacs emacs \
  6. /usr/bin/${FLAVOR}-@X_SUPPORT@ @BIN_PRIORITY@ \
  7. --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
  8. /usr/share/man/man1/emacs.${FLAVOR}.1.gz \
  9. --slave /usr/share/icons/hicolor/scalable/apps/emacs.svg emacs.svg \
  10. /usr/share/icons/hicolor/scalable/apps/${FLAVOR}.svg \
  11. --slave /usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg \
  12. emacs-document.svg \
  13. /usr/share/icons/hicolor/scalable/mimetypes/${FLAVOR}-document.svg \
  14. --slave /usr/share/icons/hicolor/16x16/apps/emacs.png emacs-16x16.png \
  15. /usr/share/icons/hicolor/16x16/apps/${FLAVOR}.png \
  16. --slave /usr/share/icons/hicolor/24x24/apps/emacs.png emacs-24x24.png \
  17. /usr/share/icons/hicolor/24x24/apps/${FLAVOR}.png \
  18. --slave /usr/share/icons/hicolor/32x32/apps/emacs.png emacs-32x32.png \
  19. /usr/share/icons/hicolor/32x32/apps/${FLAVOR}.png \
  20. --slave /usr/share/icons/hicolor/48x48/apps/emacs.png emacs-48x48.png \
  21. /usr/share/icons/hicolor/48x48/apps/${FLAVOR}.png \
  22. --slave /usr/share/icons/hicolor/128x128/apps/emacs.png emacs-128x128.png \
  23. /usr/share/icons/hicolor/128x128/apps/${FLAVOR}.png
  24. update-alternatives \
  25. --install /usr/bin/editor editor \
  26. /usr/bin/${FLAVOR} 0 \
  27. --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
  28. /usr/share/man/man1/emacs.${FLAVOR}.1.gz
  29. # emacsen-common registration.
  30. /usr/lib/emacsen-common/emacs-install ${FLAVOR}
  31. #DEBHELPER#