summaryrefslogtreecommitdiff
path: root/debian/emacsVER.postinst
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-06-20 22:05:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-06-20 22:05:08 +0300
commit463c81abcc6e1adc4463cb9d6f272cf23dbf29c2 (patch)
tree8422976fbc8b0f0b2ddf9c287fac41d44a543a12 /debian/emacsVER.postinst
downloademacs25-463c81abcc6e1adc4463cb9d6f272cf23dbf29c2.tar.gz
Imported emacs25 25.1+1-4debian/25.1+1-4debian
Diffstat (limited to 'debian/emacsVER.postinst')
-rw-r--r--debian/emacsVER.postinst37
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/emacsVER.postinst b/debian/emacsVER.postinst
new file mode 100644
index 0000000..781d814
--- /dev/null
+++ b/debian/emacsVER.postinst
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+set -e
+
+FLAVOR=@DEB_FLAVOR@
+
+update-alternatives \
+ --install /usr/bin/emacs emacs \
+ /usr/bin/${FLAVOR}-@X_SUPPORT@ @BIN_PRIORITY@ \
+ --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
+ /usr/share/man/man1/emacs.${FLAVOR}.1.gz \
+ --slave /usr/share/icons/hicolor/scalable/apps/emacs.svg emacs.svg \
+ /usr/share/icons/hicolor/scalable/apps/${FLAVOR}.svg \
+ --slave /usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg \
+ emacs-document.svg \
+ /usr/share/icons/hicolor/scalable/mimetypes/${FLAVOR}-document.svg \
+ --slave /usr/share/icons/hicolor/16x16/apps/emacs.png emacs-16x16.png \
+ /usr/share/icons/hicolor/16x16/apps/${FLAVOR}.png \
+ --slave /usr/share/icons/hicolor/24x24/apps/emacs.png emacs-24x24.png \
+ /usr/share/icons/hicolor/24x24/apps/${FLAVOR}.png \
+ --slave /usr/share/icons/hicolor/32x32/apps/emacs.png emacs-32x32.png \
+ /usr/share/icons/hicolor/32x32/apps/${FLAVOR}.png \
+ --slave /usr/share/icons/hicolor/48x48/apps/emacs.png emacs-48x48.png \
+ /usr/share/icons/hicolor/48x48/apps/${FLAVOR}.png \
+ --slave /usr/share/icons/hicolor/128x128/apps/emacs.png emacs-128x128.png \
+ /usr/share/icons/hicolor/128x128/apps/${FLAVOR}.png
+
+update-alternatives \
+ --install /usr/bin/editor editor \
+ /usr/bin/${FLAVOR} 0 \
+ --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
+ /usr/share/man/man1/emacs.${FLAVOR}.1.gz
+
+# emacsen-common registration.
+/usr/lib/emacsen-common/emacs-install ${FLAVOR}
+
+#DEBHELPER#