Gitlab was updated! v14.5.1

Verified Commit 1692ebb8 authored by Simão Afonso @ Powertools Tech's avatar Simão Afonso @ Powertools Tech
Browse files

Integrate installation profile

One less dependency on external servers...
parent aac9890d
......@@ -2,12 +2,10 @@
set -e
# TODO: This is the latest version
# See "" for archived versions
# See "https://texlive.info/tlnet-archive/" for archived versions
TexLive_Repo=${CTAN_REPO:-http://mirror.ctan.org/systems/texlive/tlnet}
TexLive_File="install-tl-unx.tar.gz"
TexLive_URL="$TexLive_Repo/$TexLive_File"
# TODO: Integrate this
TinyTex_Profile="https://raw.githubusercontent.com/yihui/tinytex/master/tools/tinytex.profile"
setup_tinytex() { # Install Location
il="$(readlink -e "$1")"
......@@ -17,9 +15,6 @@ setup_tinytex() { # Install Location
wget -nc "$TexLive_URL"{,.sha512,.sha512.asc}
sha512sum -c "$TexLive_File.sha512" # Verify hash
gpg --verify "$TexLive_File.sha512.asc" || true # TODO: Verify GPG
# TinyTex
wget -nc "$TinyTex_Profile"
echo "tlpdbopt_sys_bin $il_bin" >> tinytex.profile
# Extract files
tar xf "$TexLive_File"
......@@ -39,10 +34,29 @@ setup_tinytex() { # Install Location
# Do it!
if [ -d "$il_texlive" ]; then
# TODO: I *think* TeXlive supports overwiting...
echo "=> Re-Installing TexLive"
rm -rf "$il_texlive"
fi
echo "=> Installing TexLive @ '$il_texlive'"
# Ripped off from TinyTex: https://github.com/yihui/tinytex/blob/master/tools/tinytex.profile
cat >"$tmp/tinytex.profile" <<-TINYTEX
selected_scheme scheme-infraonly
TEXDIR $il_texlive/
TEXMFSYSCONFIG $il_texlive/texmf-config
TEXMFLOCAL $il_texlive/texmf-local
TEXMFSYSVAR $il_texlive/texmf-var
option_doc 0
option_src 0
option_autobackup 0
instopt_portable 1
tlpdbopt_sys_bin $il_bin
TINYTEX
mkdir -p "$il_texlive"
(
cd "$il_texlive" &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment