if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications
fi

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/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 -f usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
( cd usr/lib64 ; rm -rf libOTBApplicationEngine-8.1.so )
( cd usr/lib64 ; ln -sf libOTBApplicationEngine-8.1.so.1 libOTBApplicationEngine-8.1.so )
( cd usr/lib64 ; rm -rf libOTBCarto-8.1.so )
( cd usr/lib64 ; ln -sf libOTBCarto-8.1.so.1 libOTBCarto-8.1.so )
( cd usr/lib64 ; rm -rf libOTBCommandLine-8.1.so )
( cd usr/lib64 ; ln -sf libOTBCommandLine-8.1.so.1 libOTBCommandLine-8.1.so )
( cd usr/lib64 ; rm -rf libOTBCommon-8.1.so )
( cd usr/lib64 ; ln -sf libOTBCommon-8.1.so.1 libOTBCommon-8.1.so )
( cd usr/lib64 ; rm -rf libOTBCurlAdapters-8.1.so )
( cd usr/lib64 ; ln -sf libOTBCurlAdapters-8.1.so.1 libOTBCurlAdapters-8.1.so )
( cd usr/lib64 ; rm -rf libOTBExtendedFilename-8.1.so )
( cd usr/lib64 ; ln -sf libOTBExtendedFilename-8.1.so.1 libOTBExtendedFilename-8.1.so )
( cd usr/lib64 ; rm -rf libOTBFuzzy-8.1.so )
( cd usr/lib64 ; ln -sf libOTBFuzzy-8.1.so.1 libOTBFuzzy-8.1.so )
( cd usr/lib64 ; rm -rf libOTBGdalAdapters-8.1.so )
( cd usr/lib64 ; ln -sf libOTBGdalAdapters-8.1.so.1 libOTBGdalAdapters-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIOBSQ-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIOBSQ-8.1.so.1 libOTBIOBSQ-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIOGDAL-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIOGDAL-8.1.so.1 libOTBIOGDAL-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIOKML-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIOKML-8.1.so.1 libOTBIOKML-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIOLUM-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIOLUM-8.1.so.1 libOTBIOLUM-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIOMSTAR-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIOMSTAR-8.1.so.1 libOTBIOMSTAR-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIOONERA-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIOONERA-8.1.so.1 libOTBIOONERA-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIORAD-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIORAD-8.1.so.1 libOTBIORAD-8.1.so )
( cd usr/lib64 ; rm -rf libOTBIce-8.1.so )
( cd usr/lib64 ; ln -sf libOTBIce-8.1.so.1 libOTBIce-8.1.so )
( cd usr/lib64 ; rm -rf libOTBImageBase-8.1.so )
( cd usr/lib64 ; ln -sf libOTBImageBase-8.1.so.1 libOTBImageBase-8.1.so )
( cd usr/lib64 ; rm -rf libOTBImageIO-8.1.so )
( cd usr/lib64 ; ln -sf libOTBImageIO-8.1.so.1 libOTBImageIO-8.1.so )
( cd usr/lib64 ; rm -rf libOTBImageManipulation-8.1.so )
( cd usr/lib64 ; ln -sf libOTBImageManipulation-8.1.so.1 libOTBImageManipulation-8.1.so )
( cd usr/lib64 ; rm -rf libOTBLearningBase-8.1.so )
( cd usr/lib64 ; ln -sf libOTBLearningBase-8.1.so.1 libOTBLearningBase-8.1.so )
( cd usr/lib64 ; rm -rf libOTBMapla-8.1.so )
( cd usr/lib64 ; ln -sf libOTBMapla-8.1.so.1 libOTBMapla-8.1.so )
( cd usr/lib64 ; rm -rf libOTBMathParser-8.1.so )
( cd usr/lib64 ; ln -sf libOTBMathParser-8.1.so.1 libOTBMathParser-8.1.so )
( cd usr/lib64 ; rm -rf libOTBMetadata-8.1.so )
( cd usr/lib64 ; ln -sf libOTBMetadata-8.1.so.1 libOTBMetadata-8.1.so )
( cd usr/lib64 ; rm -rf libOTBMonteverdi-8.1.so )
( cd usr/lib64 ; ln -sf libOTBMonteverdi-8.1.so.1 libOTBMonteverdi-8.1.so )
( cd usr/lib64 ; rm -rf libOTBMonteverdiCore-8.1.so )
( cd usr/lib64 ; ln -sf libOTBMonteverdiCore-8.1.so.1 libOTBMonteverdiCore-8.1.so )
( cd usr/lib64 ; rm -rf libOTBMonteverdiGUI-8.1.so )
( cd usr/lib64 ; ln -sf libOTBMonteverdiGUI-8.1.so.1 libOTBMonteverdiGUI-8.1.so )
( cd usr/lib64 ; rm -rf libOTBOpticalCalibration-8.1.so )
( cd usr/lib64 ; ln -sf libOTBOpticalCalibration-8.1.so.1 libOTBOpticalCalibration-8.1.so )
( cd usr/lib64 ; rm -rf libOTBPolarimetry-8.1.so )
( cd usr/lib64 ; ln -sf libOTBPolarimetry-8.1.so.1 libOTBPolarimetry-8.1.so )
( cd usr/lib64 ; rm -rf libOTBProjection-8.1.so )
( cd usr/lib64 ; ln -sf libOTBProjection-8.1.so.1 libOTBProjection-8.1.so )
( cd usr/lib64 ; rm -rf libOTBQtAdapters-8.1.so )
( cd usr/lib64 ; ln -sf libOTBQtAdapters-8.1.so.1 libOTBQtAdapters-8.1.so )
( cd usr/lib64 ; rm -rf libOTBQtWidget-8.1.so )
( cd usr/lib64 ; ln -sf libOTBQtWidget-8.1.so.1 libOTBQtWidget-8.1.so )
( cd usr/lib64 ; rm -rf libOTBSampling-8.1.so )
( cd usr/lib64 ; ln -sf libOTBSampling-8.1.so.1 libOTBSampling-8.1.so )
( cd usr/lib64 ; rm -rf libOTBSimulation-8.1.so )
( cd usr/lib64 ; ln -sf libOTBSimulation-8.1.so.1 libOTBSimulation-8.1.so )
( cd usr/lib64 ; rm -rf libOTBStatistics-8.1.so )
( cd usr/lib64 ; ln -sf libOTBStatistics-8.1.so.1 libOTBStatistics-8.1.so )
( cd usr/lib64 ; rm -rf libOTBStreaming-8.1.so )
( cd usr/lib64 ; ln -sf libOTBStreaming-8.1.so.1 libOTBStreaming-8.1.so )
( cd usr/lib64 ; rm -rf libOTBSupervised-8.1.so )
( cd usr/lib64 ; ln -sf libOTBSupervised-8.1.so.1 libOTBSupervised-8.1.so )
( cd usr/lib64 ; rm -rf libOTBTestKernel-8.1.so )
( cd usr/lib64 ; ln -sf libOTBTestKernel-8.1.so.1 libOTBTestKernel-8.1.so )
( cd usr/lib64 ; rm -rf libOTBTransform-8.1.so )
( cd usr/lib64 ; ln -sf libOTBTransform-8.1.so.1 libOTBTransform-8.1.so )
( cd usr/lib64 ; rm -rf libOTBVectorDataBase-8.1.so )
( cd usr/lib64 ; ln -sf libOTBVectorDataBase-8.1.so.1 libOTBVectorDataBase-8.1.so )
( cd usr/lib64 ; rm -rf libOTBVectorDataIO-8.1.so )
( cd usr/lib64 ; ln -sf libOTBVectorDataIO-8.1.so.1 libOTBVectorDataIO-8.1.so )
( cd usr/lib64 ; rm -rf libOTBWavelet-8.1.so )
( cd usr/lib64 ; ln -sf libOTBWavelet-8.1.so.1 libOTBWavelet-8.1.so )
( cd usr/lib64 ; rm -rf libotb6S-8.1.so )
( cd usr/lib64 ; ln -sf libotb6S-8.1.so.1 libotb6S-8.1.so )
( cd usr/lib64 ; rm -rf libotbsiftfast-8.1.so )
( cd usr/lib64 ; ln -sf libotbsiftfast-8.1.so.1 libotbsiftfast-8.1.so )
