if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
[ -x /sbin/setcap ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/lives-exe
( cd usr/bin ; rm -rf lives )
( cd usr/bin ; ln -sf lives-exe lives )
( cd usr/lib ; rm -rf libweed-utils.so.0 )
( cd usr/lib ; ln -sf libweed-utils.so.0.0.8 libweed-utils.so.0 )
( cd usr/lib ; rm -rf libweed_slice.so )
( cd usr/lib ; ln -sf libweed_slice.so.0.0.8 libweed_slice.so )
( cd usr/lib ; rm -rf libweed_slice.so.0 )
( cd usr/lib ; ln -sf libweed_slice.so.0.0.8 libweed_slice.so.0 )
( cd usr/lib ; rm -rf libweed.so )
( cd usr/lib ; ln -sf libweed.so.0.0.8 libweed.so )
( cd usr/lib ; rm -rf libweed-utils_scripting.so.0 )
( cd usr/lib ; ln -sf libweed-utils_scripting.so.0.0.8 libweed-utils_scripting.so.0 )
( cd usr/lib ; rm -rf libOSC.so.0 )
( cd usr/lib ; ln -sf libOSC.so.0.0.0 libOSC.so.0 )
( cd usr/lib ; rm -rf libOSC_client.so.0 )
( cd usr/lib ; ln -sf libOSC_client.so.0.0.0 libOSC_client.so.0 )
( cd usr/lib ; rm -rf libweed_slice_scripting.so.0 )
( cd usr/lib ; ln -sf libweed_slice_scripting.so.0.0.8 libweed_slice_scripting.so.0 )
( cd usr/lib ; rm -rf libweed-utils_scripting.so )
( cd usr/lib ; ln -sf libweed-utils_scripting.so.0.0.8 libweed-utils_scripting.so )
( cd usr/lib ; rm -rf libweed_slice_scripting.so )
( cd usr/lib ; ln -sf libweed_slice_scripting.so.0.0.8 libweed_slice_scripting.so )
( cd usr/lib ; rm -rf libweed-utils.so )
( cd usr/lib ; ln -sf libweed-utils.so.0.0.8 libweed-utils.so )
( cd usr/lib ; rm -rf libOSC_client.so )
( cd usr/lib ; ln -sf libOSC_client.so.0.0.0 libOSC_client.so )
( cd usr/lib ; rm -rf libOSC.so )
( cd usr/lib ; ln -sf libOSC.so.0.0.0 libOSC.so )
( cd usr/lib ; rm -rf libweed.so.0 )
( cd usr/lib ; ln -sf libweed.so.0.0.8 libweed.so.0 )
