From f06be0105e98508c18cdfb50e0818b4fe4679d83 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 18 Sep 2011 22:12:49 +0000 Subject: added update-alternatives support svn path=/trunk/; revision=15301 --- packages/linux_make/debian/control | 1 - packages/linux_make/debian/pd-extended.postinst | 7 +++++++ packages/linux_make/debian/pd-extended.postrm | 0 packages/linux_make/debian/pd-extended.prerm | 5 +++++ 4 files changed, 12 insertions(+), 1 deletion(-) mode change 100644 => 100755 packages/linux_make/debian/pd-extended.postrm create mode 100755 packages/linux_make/debian/pd-extended.prerm (limited to 'packages/linux_make') diff --git a/packages/linux_make/debian/control b/packages/linux_make/debian/control index b17a82ba..629085ab 100644 --- a/packages/linux_make/debian/control +++ b/packages/linux_make/debian/control @@ -3,7 +3,6 @@ Version: 0.43.1~git1-1 Section: sound Priority: optional Maintainer: Hans-Christoph Steiner -Standards-Version: 3.9.2 Homepage: http://puredata.info Package: pd-extended Architecture: i386 diff --git a/packages/linux_make/debian/pd-extended.postinst b/packages/linux_make/debian/pd-extended.postinst index 23f81787..a7ca87be 100644 --- a/packages/linux_make/debian/pd-extended.postinst +++ b/packages/linux_make/debian/pd-extended.postinst @@ -17,3 +17,10 @@ fi if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then update-mime-database /usr/share/mime fi + +if [ "$1" = "configure" ] || [ "$1" = "upgrade" ]; then + update-alternatives --install /usr/bin/pd pd \ + /usr/bin/pd-extended 60 \ + --slave /usr/share/man/man1/pd.1.gz pd.1.gz \ + /usr/share/man/man1/pd-extended.1.gz +fi diff --git a/packages/linux_make/debian/pd-extended.postrm b/packages/linux_make/debian/pd-extended.postrm old mode 100644 new mode 100755 diff --git a/packages/linux_make/debian/pd-extended.prerm b/packages/linux_make/debian/pd-extended.prerm new file mode 100755 index 00000000..7d252882 --- /dev/null +++ b/packages/linux_make/debian/pd-extended.prerm @@ -0,0 +1,5 @@ +#!/bin/sh -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove pd /usr/bin/pd-extended +fi -- cgit v1.2.1