Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
3-manifolds
GitHub Repository: 3-manifolds/Sage_macOS
Path: blob/main/package/local_bin/sage_install/scripts/postinstall
170 views
#!/bin/bash

SAGETEX_DIR=/usr/local/texlive/texmf-local/tex/latex/local

# Run mktexlsr if SAGETEX_DIR changed in the last 10 minutes.
if [ -e /Library/TeX/texbin/mktexlsr ] && [ `date -j -r $SAGETEX_DIR -v +10M +%s` -ge `date +%s` ]; then
    /Library/TeX/texbin/mktexlsr;
fi

# Remove the install scripts.
rm -rf /usr/local/bin/sage_install