From c41e61e03cbd5a6f7ac523fe8641f08168b77efa Mon Sep 17 00:00:00 2001 From: Jack Maddox Date: Mon, 25 Jul 2011 22:11:02 -0500 Subject: academic/sage: Added (python based mathematics software) Signed-off-by: Robby Workman --- academic/sage/doinst.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 academic/sage/doinst.sh (limited to 'academic/sage/doinst.sh') diff --git a/academic/sage/doinst.sh b/academic/sage/doinst.sh new file mode 100644 index 000000000000..4f7e8e2e8fee --- /dev/null +++ b/academic/sage/doinst.sh @@ -0,0 +1,21 @@ +# update texmf to recognize the newly installed sagetex +if [ -x usr/share/texmf/bin/texhash ]; then + /usr/share/texmf/bin/texhash /usr/share/texmf >/dev/null 2>&1 +fi + +# run sage at least once as root after moving it to a new location +echo "exit" | SAGEROOT/sage + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +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 usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi -- cgit v1.2.3