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.
if [ -e /usr/share/config ]; then
/bin/mv /usr/share/config /usr/share/config.
fi
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
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
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/crystalsvg || true; fi
POSTUN
/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
if [ -x /usr/bin/gtk-update-icon-cache -a -r /usr/share/icons/crystalsvg/index.theme ]; then
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/crystalsvg || true ; fi