summaryrefslogtreecommitdiffstats
path: root/debian/local/eclipse-ide.postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local/eclipse-ide.postinst.in')
-rwxr-xr-xdebian/local/eclipse-ide.postinst.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/local/eclipse-ide.postinst.in b/debian/local/eclipse-ide.postinst.in
new file mode 100755
index 0000000..3177cb3
--- /dev/null
+++ b/debian/local/eclipse-ide.postinst.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ update-alternatives --quiet --install /usr/bin/eclipse-ide-@FEATURE@ eclipse-ide-@FEATURE@ /usr/bin/eclipse-ide-@RELEASE@-@FEATURE@ @PRIORITY@
+ update-alternatives --quiet --install /usr/bin/eclipse-ide-@RELEASE@ eclipse-ide-@RELEASE@ /usr/bin/eclipse-ide-@RELEASE@-@FEATURE@ @PRIORITY@
+ update-alternatives --quiet --install /usr/bin/eclipse-ide eclipse-ide /usr/bin/eclipse-ide-@RELEASE@-@FEATURE@ @PRIORITY@
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0