Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > fd335c887ab71760c8a8b968bc4b0f25 > scriptlet

kdelibs-common-3.4.2-31mdk.x86_64.rpm

PREIN

/bin/sh
# here, we put things that we have moved around (like directories)
# that need to be cleaned up prior to the RPM's installation.
# Ugly. Necessary.

mv /usr/share/config /usr/share/config.
while read old new link; do
  if [ -d `dirname $old` -a ! -L $old ]; then
     echo "moving $old to $new linking to $link"
     if [ ! -d $new ]; then
        mkdir -p $new
     fi
     if [ -d $old ]; then
         mv -f $old/* $new
         rm -rf $old
     fi
     #ln -sf $link $old
  fi
done << EOF
/usr/share/config. /etc/kde/ ../../etc/kde
EOF

ln -sf ../../etc/kde /usr/share/config

rm -rf /usr/share/config.

POSTIN

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

POSTUN

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