aboutsummaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 00:47:16 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 00:47:16 +0000
commita8baa0b6dfa393cc635f3c8a8bfb276e146c9379 (patch)
treeceeb8c3cf41aa9233a533333fad7e8070e7ebbd1 /debian/postinst
parent4701d900dfbe733025ba5e9d20875472dda964a7 (diff)
copying pd-extended/0.43 debianization into trunk
svn path=/trunk/; revision=16938
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100755
index 00000000..126e38df
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,32 @@
+#!/bin/sh
+# this was is copied from audacity.postinst and audacity-data.postinst
+set -e
+
+if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
+ update-menus
+fi
+
+if [ "$1" = "configure" ] && [ -x "`which update-mime 2>/dev/null`" ]; then
+ update-mime
+fi
+
+if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
+ update-desktop-database -q
+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 101 \
+ --slave /usr/share/man/man1/pd.1.gz pd.1.gz \
+ /usr/share/man/man1/pd-extended.1.gz
+ update-alternatives --install /usr/bin/pdextended pdextended \
+ /usr/bin/pd-extended 60 \
+ --slave /usr/share/man/man1/pdextended.1.gz pdextended.1.gz \
+ /usr/share/man/man1/pd-extended.1.gz
+fi
+
+#DEBHELPER#