Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 38e0765be1dc360c3534ea2f53506db4 > scriptlet

xmame-SDL-0.106-4plf2008.1.x86_64.rpm

POSTIN

/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

update-alternatives --install /usr/games/xmame xmame /usr/games/xmame.SDL     10
# without the following, the group stays in default manual mode,
#  and no link is created
#[ -e /usr/games/xmame ] || update-alternatives --auto xmame
update-alternatives --auto xmame

POSTUN

/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

if [ "$1" = 0 ]; then
  # Remove update-alternatives entries
  update-alternatives --remove xmame /usr/games/xmame.SDL
  update-alternatives --auto xmame
fi