doinst.sh 700 B

12345678910111213141516171819202122
  1. # update texmf to recognize the newly installed sagetex
  2. if [ -x usr/share/texmf/bin/texhash ]; then
  3. /usr/share/texmf/bin/texhash /usr/share/texmf >/dev/null 2>&1
  4. fi
  5. # run sage at least once as root after moving it to a new location
  6. #echo "exit" | SAGEROOT/sage
  7. if [ -x /usr/bin/update-desktop-database ]; then
  8. /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
  9. fi
  10. if [ -x /usr/bin/update-mime-database ]; then
  11. /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
  12. fi
  13. if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  14. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  15. /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
  16. fi
  17. fi