1%format deb 2 3%postinstall << END 4if [ "$$1" = "configure" ] ; then 5 # update desktop database 6 if [ -x /usr/bin/update-desktop-database ]; then 7 update-desktop-database -q /usr/share/applications 8 fi 9 # update debian style menus 10 if [ -x /usr/bin/update-menus ]; then 11 update-menus 12 fi 13fi 14exit 0 15END 16 17%postremove << END 18if [ "$$1" != "purge" ] 19then 20 if [ -x /usr/bin/update-desktop-database ] 21 then 22 update-desktop-database -q /usr/share/applications 23 fi 24 if [ -x /usr/bin/update-menus ] 25 then 26 update-menus 27 fi 28fi 29exit 0 30END 31 32%format all 33 34