diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-06-07 20:24:13 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-06-07 20:24:13 +0000 |
commit | 1c01975eca029b375d84b2a5c03b2712cfb0835c (patch) | |
tree | 4a6432846e682116abeec710a7c4b17d856622e9 /packages/linux_make/debian/pd-extended.postinst | |
parent | 8cf465ea89ea58b5e2469f7f99df1f43ef32f792 (diff) |
merged in Free Desktop files and fixes from the 0.41.4 release branch
svn path=/trunk/; revision=11701
Diffstat (limited to 'packages/linux_make/debian/pd-extended.postinst')
-rw-r--r-- | packages/linux_make/debian/pd-extended.postinst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/linux_make/debian/pd-extended.postinst b/packages/linux_make/debian/pd-extended.postinst new file mode 100644 index 00000000..23f81787 --- /dev/null +++ b/packages/linux_make/debian/pd-extended.postinst @@ -0,0 +1,19 @@ +#!/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 |