if [ -x usr/bin/scrollkeeper-update ]; then
  usr/bin/scrollkeeper-update -p var/lib/scrollkeeper 1> /dev/null 2> /dev/null
fi

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

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

( cd usr/share/gnucash ; rm -rf gnome )
( cd usr/share/gnucash ; ln -sf ../gnome gnome )
( cd usr/lib ; rm -rf libgncqof.so.1 )
( cd usr/lib ; ln -sf libgncqof.so.1.0.4 libgncqof.so.1 )
( cd usr/lib ; rm -rf libgncqof.so )
( cd usr/lib ; ln -sf libgncqof.so.1.0.4 libgncqof.so )
( cd usr/lib ; rm -rf libcore-utils.so.0 )
( cd usr/lib ; ln -sf libcore-utils.so.0.0.0 libcore-utils.so.0 )
( cd usr/lib ; rm -rf libcore-utils.so )
( cd usr/lib ; ln -sf libcore-utils.so.0.0.0 libcore-utils.so )
( cd usr/lib ; rm -rf libgw-core-utils.so.0 )
( cd usr/lib ; ln -sf libgw-core-utils.so.0.0.0 libgw-core-utils.so.0 )
( cd usr/lib ; rm -rf libgw-core-utils.so )
( cd usr/lib ; ln -sf libgw-core-utils.so.0.0.0 libgw-core-utils.so )
( cd usr/lib ; rm -rf libgncmodule.so.0 )
( cd usr/lib ; ln -sf libgncmodule.so.0.0.0 libgncmodule.so.0 )
( cd usr/lib ; rm -rf libgncmodule.so )
( cd usr/lib ; ln -sf libgncmodule.so.0.0.0 libgncmodule.so )
( cd usr/lib/gnucash ; rm -rf libgw-gnc-module.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-gnc-module.so.0.0.0 libgw-gnc-module.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-gnc-module.so )
( cd usr/lib/gnucash ; ln -sf libgw-gnc-module.so.0.0.0 libgw-gnc-module.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-engine.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-engine.so.0.0.0 libgncmod-engine.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-engine.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-engine.so.0.0.0 libgncmod-engine.so )
( cd usr/lib/gnucash ; rm -rf libgw-engine.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-engine.so.0.0.0 libgw-engine.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-engine.so )
( cd usr/lib/gnucash ; ln -sf libgw-engine.so.0.0.0 libgw-engine.so )
( cd usr/lib/gnucash ; rm -rf libgw-kvp.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-kvp.so.0.0.0 libgw-kvp.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-kvp.so )
( cd usr/lib/gnucash ; ln -sf libgw-kvp.so.0.0.0 libgw-kvp.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-network-utils.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-network-utils.so.0.0.0 libgncmod-network-utils.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-network-utils.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-network-utils.so.0.0.0 libgncmod-network-utils.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-calculation.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-calculation.so.0.0.0 libgncmod-calculation.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-calculation.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-calculation.so.0.0.0 libgncmod-calculation.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-tax-us.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-tax-us.so.0.0.0 libgncmod-tax-us.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-tax-us.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-tax-us.so.0.0.0 libgncmod-tax-us.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-app-utils.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-app-utils.so.0.0.0 libgncmod-app-utils.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-app-utils.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-app-utils.so.0.0.0 libgncmod-app-utils.so )
( cd usr/lib/gnucash ; rm -rf libgw-app-utils.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-app-utils.so.0.0.0 libgw-app-utils.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-app-utils.so )
( cd usr/lib/gnucash ; ln -sf libgw-app-utils.so.0.0.0 libgw-app-utils.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-gnome-utils.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-gnome-utils.so.0.0.0 libgncmod-gnome-utils.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-gnome-utils.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-gnome-utils.so.0.0.0 libgncmod-gnome-utils.so )
( cd usr/lib/gnucash ; rm -rf libgw-gnome-utils.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-gnome-utils.so.0.0.0 libgw-gnome-utils.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-gnome-utils.so )
( cd usr/lib/gnucash ; ln -sf libgw-gnome-utils.so.0.0.0 libgw-gnome-utils.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-gnome-search.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-gnome-search.so.0.0.0 libgncmod-gnome-search.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-gnome-search.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-gnome-search.so.0.0.0 libgncmod-gnome-search.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-report-system.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-report-system.so.0.0.0 libgncmod-report-system.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-report-system.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-report-system.so.0.0.0 libgncmod-report-system.so )
( cd usr/lib/gnucash ; rm -rf libgw-report-system.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-report-system.so.0.0.0 libgw-report-system.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-report-system.so )
( cd usr/lib/gnucash ; ln -sf libgw-report-system.so.0.0.0 libgw-report-system.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-standard-reports.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-standard-reports.so.0.0.0 libgncmod-standard-reports.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-standard-reports.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-standard-reports.so.0.0.0 libgncmod-standard-reports.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-utility-reports.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-utility-reports.so.0.0.0 libgncmod-utility-reports.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-utility-reports.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-utility-reports.so.0.0.0 libgncmod-utility-reports.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-locale-reports-us.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-locale-reports-us.so.0.0.0 libgncmod-locale-reports-us.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-locale-reports-us.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-locale-reports-us.so.0.0.0 libgncmod-locale-reports-us.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-report-gnome.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-report-gnome.so.0.0.0 libgncmod-report-gnome.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-report-gnome.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-report-gnome.so.0.0.0 libgncmod-report-gnome.so )
( cd usr/lib/gnucash ; rm -rf libgw-report-gnome.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-report-gnome.so.0.0.0 libgw-report-gnome.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-report-gnome.so )
( cd usr/lib/gnucash ; ln -sf libgw-report-gnome.so.0.0.0 libgw-report-gnome.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-stylesheets.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-stylesheets.so.0.0.0 libgncmod-stylesheets.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-stylesheets.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-stylesheets.so.0.0.0 libgncmod-stylesheets.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-register-core.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-register-core.so.0.0.0 libgncmod-register-core.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-register-core.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-register-core.so.0.0.0 libgncmod-register-core.so )
( cd usr/lib/gnucash ; rm -rf libgw-register-core.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-register-core.so.0.0.0 libgw-register-core.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-register-core.so )
( cd usr/lib/gnucash ; ln -sf libgw-register-core.so.0.0.0 libgw-register-core.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-register-gnome.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-register-gnome.so.0.0.0 libgncmod-register-gnome.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-register-gnome.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-register-gnome.so.0.0.0 libgncmod-register-gnome.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-ledger-core.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-ledger-core.so.0.0.0 libgncmod-ledger-core.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-ledger-core.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-ledger-core.so.0.0.0 libgncmod-ledger-core.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-generic-import.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-generic-import.so.0.0.0 libgncmod-generic-import.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-generic-import.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-generic-import.so.0.0.0 libgncmod-generic-import.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-qif.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-qif.so.0.0.0 libgncmod-qif.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-qif.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-qif.so.0.0.0 libgncmod-qif.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-qif-import.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-qif-import.so.0.0.0 libgncmod-qif-import.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-qif-import.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-qif-import.so.0.0.0 libgncmod-qif-import.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-ofx.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-ofx.so.0.0.0 libgncmod-ofx.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-ofx.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-ofx.so.0.0.0 libgncmod-ofx.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-log-replay.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-log-replay.so.0.0.0 libgncmod-log-replay.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-log-replay.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-log-replay.so.0.0.0 libgncmod-log-replay.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-core.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-core.so.0.0.0 libgncmod-business-core.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-core.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-core.so.0.0.0 libgncmod-business-core.so )
( cd usr/lib/gnucash ; rm -rf libgw-business-core.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-business-core.so.0.0.0 libgw-business-core.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-business-core.so )
( cd usr/lib/gnucash ; ln -sf libgw-business-core.so.0.0.0 libgw-business-core.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-backend-file.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-backend-file.so.0.0.0 libgncmod-business-backend-file.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-backend-file.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-backend-file.so.0.0.0 libgncmod-business-backend-file.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-utils.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-utils.so.0.0.0 libgncmod-business-utils.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-utils.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-utils.so.0.0.0 libgncmod-business-utils.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-dialog-tax-table.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-dialog-tax-table.so.0.0.0 libgncmod-dialog-tax-table.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-dialog-tax-table.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-dialog-tax-table.so.0.0.0 libgncmod-dialog-tax-table.so )
( cd usr/lib/gnucash ; rm -rf libgw-dialog-tax-table.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-dialog-tax-table.so.0.0.0 libgw-dialog-tax-table.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-dialog-tax-table.so )
( cd usr/lib/gnucash ; ln -sf libgw-dialog-tax-table.so.0.0.0 libgw-dialog-tax-table.so )
( cd usr/lib/gnucash ; rm -rf libgnc-business-ledger.so.0 )
( cd usr/lib/gnucash ; ln -sf libgnc-business-ledger.so.0.0.0 libgnc-business-ledger.so.0 )
( cd usr/lib/gnucash ; rm -rf libgnc-business-ledger.so )
( cd usr/lib/gnucash ; ln -sf libgnc-business-ledger.so.0.0.0 libgnc-business-ledger.so )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-gnome.so.0 )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-gnome.so.0.0.0 libgncmod-business-gnome.so.0 )
( cd usr/lib/gnucash ; rm -rf libgncmod-business-gnome.so )
( cd usr/lib/gnucash ; ln -sf libgncmod-business-gnome.so.0.0.0 libgncmod-business-gnome.so )
( cd usr/lib/gnucash ; rm -rf libgw-business-gnome.so.0 )
( cd usr/lib/gnucash ; ln -sf libgw-business-gnome.so.0.0.0 libgw-business-gnome.so.0 )
( cd usr/lib/gnucash ; rm -rf libgw-business-gnome.so )
( cd usr/lib/gnucash ; ln -sf libgw-business-gnome.so.0.0.0 libgw-business-gnome.so )
( cd usr/lib ; rm -rf libgnc-backend-file-utils.so.0 )
( cd usr/lib ; ln -sf libgnc-backend-file-utils.so.0.0.0 libgnc-backend-file-utils.so.0 )
( cd usr/lib ; rm -rf libgnc-backend-file-utils.so )
( cd usr/lib ; ln -sf libgnc-backend-file-utils.so.0.0.0 libgnc-backend-file-utils.so )
( cd usr/lib ; rm -rf libgncgnome.so.0 )
( cd usr/lib ; ln -sf libgncgnome.so.0.0.0 libgncgnome.so.0 )
( cd usr/lib ; rm -rf libgncgnome.so )
( cd usr/lib ; ln -sf libgncgnome.so.0.0.0 libgncgnome.so )
( cd usr/lib ; rm -rf libgw-gnc.so.0 )
( cd usr/lib ; ln -sf libgw-gnc.so.0.0.0 libgw-gnc.so.0 )
( cd usr/lib ; rm -rf libgw-gnc.so )
( cd usr/lib ; ln -sf libgw-gnc.so.0.0.0 libgw-gnc.so )
