File tree Expand file tree Collapse file tree
data/r-session-complete/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Install TeXlive
3+ # Install TeXlive
4+ # Optionally set TEXLIVE_MIRROR to a CTAN mirror URL
5+ # (e.g. https://mirror.example.org/CTAN/systems/texlive/tlnet)
6+ # If unset, the default CTAN mirror redirector is used.
7+
8+ MIRROR_OPT=${TEXLIVE_MIRROR: +--repository ${TEXLIVE_MIRROR} }
49
510curl -LO https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
611 tar xvfz install-tl-unx.tar.gz && \
712 rm install-tl-unx.tar.gz && \
813 cd install-tl-* && \
9- ./install-tl --scheme small --no-interaction # --repository ftp://tug.org/historic/systems/texlive/${TEXLIVE_VERSION}/tlnet-final
14+ ./install-tl --scheme small --no-interaction ${MIRROR_OPT}
1015
1116TEXLIVE_VERSION=` ls /usr/local/texlive/ | grep [0-9]`
1217
3439WRAPPER
3540chmod +x /usr/local/bin/tlmgr
3641
42+ # Pin tlmgr to the same mirror if one was specified
43+ if [ -n " ${TEXLIVE_MIRROR} " ]; then
44+ /usr/local/texlive/${TEXLIVE_VERSION} /bin/x86_64-linux/tlmgr option repository ${TEXLIVE_MIRROR}
45+ fi
46+
3747# Install texliveonfly so it can help with auto-install missing packages
3848/usr/local/texlive/${TEXLIVE_VERSION} /bin/x86_64-linux/tlmgr install texliveonfly
You can’t perform that action at this time.
0 commit comments