2b9cdee4db
2007/08/24 14:44:06 is 1.1.2.1: #i80938# shifting package information
33 lines
564 B
Text
Executable file
33 lines
564 B
Text
Executable file
%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
|
|
|