diff options
Diffstat (limited to 'setup_native/source/packinfo/shellscripts_module.txt')
-rwxr-xr-x | setup_native/source/packinfo/shellscripts_module.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/setup_native/source/packinfo/shellscripts_module.txt b/setup_native/source/packinfo/shellscripts_module.txt new file mode 100755 index 000000000000..32a15da9bdc6 --- /dev/null +++ b/setup_native/source/packinfo/shellscripts_module.txt @@ -0,0 +1,33 @@ +%format deb + +%postinstall << END +if [ "$$1" = "configure" ] ; then + # update desktop database + if [ -x /usr/bin/update-desktop-database ]; then + update-desktop-database -q /usr/share/applications + fi + # update debian style menus + if [ -x /usr/bin/update-menus ]; then + update-menus + fi +fi +exit 0 +END + +%postremove << END +if [ "$$1" != "purge" ] +then + if [ -x /usr/bin/update-desktop-database ] + then + update-desktop-database -q /usr/share/applications + fi + if [ -x /usr/bin/update-menus ] + then + update-menus + fi +fi +exit 0 +END + +%format all + |