diff options
author | Jack Maddox <jack@auburn.edu> | 2011-07-25 22:11:02 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-11 20:28:34 -0300 |
commit | c41e61e03cbd5a6f7ac523fe8641f08168b77efa (patch) | |
tree | 453370b4a75fca7b7601b88325931612459d31ac /academic/sage/doinst.sh | |
parent | 8a1a87a0bb75f609d3466d15faffa4733ae1ead4 (diff) |
academic/sage: Added (python based mathematics software)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/sage/doinst.sh')
-rw-r--r-- | academic/sage/doinst.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/academic/sage/doinst.sh b/academic/sage/doinst.sh new file mode 100644 index 0000000000000..4f7e8e2e8fee0 --- /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 |