[gnuplot] 05/08: Use update-alternatives to provide gnuplot.
Anton Gladky
gladk at moszumanska.debian.org
Tue Jun 24 22:02:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository gnuplot.
commit e065af5f59ab72efa823eb96eb7a4d4a665100e6
Author: Anton Gladky <gladk at debian.org>
Date: Sat Jun 21 16:40:47 2014 +0200
Use update-alternatives to provide gnuplot.
---
debian/gnuplot-nox.postinst | 11 +++++++++++
debian/gnuplot-nox.prerm | 9 +++++++++
debian/gnuplot-qt.postinst | 11 +++++++++++
debian/gnuplot-qt.prerm | 9 +++++++++
debian/gnuplot-x11.postinst | 11 +++++++++++
debian/gnuplot-x11.prerm | 9 +++++++++
debian/source/local-options | 1 -
7 files changed, 60 insertions(+), 1 deletion(-)
diff --git a/debian/gnuplot-nox.postinst b/debian/gnuplot-nox.postinst
new file mode 100644
index 0000000..aa88ff2
--- /dev/null
+++ b/debian/gnuplot-nox.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+ update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot4-nox 40 \
+ --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
+ /usr/share/man/man1/gnuplot4-nox.1.gz
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot-nox.prerm b/debian/gnuplot-nox.prerm
new file mode 100644
index 0000000..80306d1
--- /dev/null
+++ b/debian/gnuplot-nox.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove gnuplot /usr/bin/gnuplot4-nox
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot-qt.postinst b/debian/gnuplot-qt.postinst
new file mode 100644
index 0000000..570252d
--- /dev/null
+++ b/debian/gnuplot-qt.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+ update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot4-qt 40 \
+ --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
+ /usr/share/man/man1/gnuplot4-qt.1.gz
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot-qt.prerm b/debian/gnuplot-qt.prerm
new file mode 100644
index 0000000..ac89f10
--- /dev/null
+++ b/debian/gnuplot-qt.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove gnuplot /usr/bin/gnuplot4-qt
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot-x11.postinst b/debian/gnuplot-x11.postinst
new file mode 100644
index 0000000..07e0d7f
--- /dev/null
+++ b/debian/gnuplot-x11.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+ update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot4-x11 40 \
+ --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
+ /usr/share/man/man1/gnuplot4-x11.1.gz
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot-x11.prerm b/debian/gnuplot-x11.prerm
new file mode 100644
index 0000000..ef15d45
--- /dev/null
+++ b/debian/gnuplot-x11.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove gnuplot /usr/bin/gnuplot4-x11
+fi
+
+#DEBHELPER#
diff --git a/debian/source/local-options b/debian/source/local-options
deleted file mode 100644
index 4aceb10..0000000
--- a/debian/source/local-options
+++ /dev/null
@@ -1 +0,0 @@
-unapply-patches
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gnuplot.git
More information about the debian-science-commits
mailing list