Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > bf93fb8fbcfc9bc5acb998c551549c6a > scriptlet

xmame-x11-0.60.1-2mdk.i586.rpm

POSTIN

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

update-alternatives --install /usr/bin/xmame xmame /usr/X11R6/bin/xmame.x11-68k 9
update-alternatives --install /usr/bin/xmame xmame /usr/X11R6/bin/xmame.x11     10
# without the following, the group stays in default manual mode,
#  and no link is created
[ -e /usr/bin/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/X11R6/bin/xmame.x11-68k
  update-alternatives --remove xmame /usr/X11R6/bin/xmame.x11
  update-alternatives --auto xmame
fi