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

( cd usr/bin ; rm -rf moneydance )
( cd usr/bin ; ln -sf /opt/Moneydance/Moneydance moneydance )
( cd usr/bin ; rm -rf Moneydance )
( cd usr/bin ; ln -sf /opt/Moneydance/Moneydance Moneydance )
( cd usr/doc/moneydance-2015.1358 ; rm -rf license.txt )
( cd usr/doc/moneydance-2015.1358 ; ln -sf /opt/Moneydance/resources/license.txt license.txt )
( cd usr/share/pixmaps ; rm -rf moneydance.png )
( cd usr/share/pixmaps ; ln -sf /opt/Moneydance/resources/moneydance_icon32.png moneydance.png )
( cd opt/Moneydance/jre/lib/amd64/server ; rm -rf libjsig.so )
( cd opt/Moneydance/jre/lib/amd64/server ; ln -sf ../libjsig.so libjsig.so )
( cd opt/Moneydance/jre/bin ; rm -rf ControlPanel )
( cd opt/Moneydance/jre/bin ; ln -sf jcontrol ControlPanel )
