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

# Update the mime database:
if [ -x usr/bin/update-mime-database ]; then
  usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
( cd usr/bin ; rm -rf acroread )
( cd usr/bin ; ln -sf /opt/Adobe/Reader8/bin/acroread acroread )
( cd usr/man/man1 ; rm -rf acroread.1.gz.gz )
( cd usr/man/man1 ; ln -sf /opt/Adobe/Reader8/Resource/Shell/acroread.1.gz.gz acroread.1.gz.gz )
( cd usr/lib/mozilla/plugins ; rm -rf nppdf.so )
( cd usr/lib/mozilla/plugins ; ln -sf /opt/Adobe/Reader8/Browser/intellinux/nppdf.so nppdf.so )
( cd usr/share/pixmaps ; rm -rf AdobeReader8.png )
( cd usr/share/pixmaps ; ln -sf /opt/Adobe/Reader8/Resource/Icons/128x128/AdobeReader8.png AdobeReader8.png )
( cd usr/share/applications ; rm -rf AdobeReader.desktop )
( cd usr/share/applications ; ln -sf /opt/Adobe/Reader8/Resource/Support/AdobeReader.desktop AdobeReader.desktop )
( cd usr/share/mime/packages ; rm -rf AdobeReader.xml )
( cd usr/share/mime/packages ; ln -sf /opt/Adobe/Reader8/Resource/Support/AdobeReader.xml AdobeReader.xml )
( cd etc/bash_completion.d ; rm -rf acroread )
( cd etc/bash_completion.d ; ln -sf /opt/Adobe/Reader8/Resource/Shell/acroread_tab acroread )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libgcc_s.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libgcc_s.so.1 libgcc_s.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libstdc++.so.6 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libstdc++.so.6.0.7 libstdc++.so.6 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libcurl.so.3 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libcurl.so.3.0.0 libcurl.so.3 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libcurl.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libcurl.so.3 libcurl.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libBIB.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libBIB.so.1.2 libBIB.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libcrypto.so.0 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libcrypto.so.0.9.7 libcrypto.so.0 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libicui18n.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libicui18n.so.34 libicui18n.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libWRServices.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libWRServices.so.2.1 libWRServices.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libicuuc.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libicuuc.so.34 libicuuc.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libBIBUtils.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libBIBUtils.so.1.1 libBIBUtils.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libicudata.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libicudata.so.34 libicudata.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libicuuc.so.34 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libicuuc.so.34.0 libicuuc.so.34 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libAGM.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libAGM.so.4.16 libAGM.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libadobelinguistic.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libadobelinguistic.so.3.0.0 libadobelinguistic.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libicudata.so.34 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libicudata.so.34.0 libicudata.so.34 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libicui18n.so.34 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libicui18n.so.34.0 libicui18n.so.34 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libResAccess.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libResAccess.so.0.1 libResAccess.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libACE.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libACE.so.2.10 libACE.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libCoolType.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libCoolType.so.5.03 libCoolType.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libssl.so.0 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libssl.so.0.9.7 libssl.so.0 )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libcrypto.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libcrypto.so.0 libcrypto.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; rm -rf libssl.so )
( cd opt/Adobe/Reader8/Reader/intellinux/lib ; ln -sf libssl.so.0 libssl.so )
