1 export TMPDIR=$PREFIX/tmp/
4 wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
5 tar xvzf install-tl-unx.tar.gz
9 sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" tlpkg/TeXLive/TLUtils.pm
11 cat >> texlive_inst.profile << XX
13 selected_scheme scheme-custom
14 TEXDIR $PREFIX/local/texlive/2016
15 TEXMFCONFIG ~/.texlive2016/texmf-config
17 TEXMFLOCAL $PREFIX/local/texlive/texmf-local
18 TEXMFSYSCONFIG $PREFIX/local/texlive/2016/texmf-config
19 TEXMFSYSVAR $PREFIX/local/texlive/2016/texmf-var
20 TEXMFVAR ~/.texlive2016/texmf-var
27 option_backupdir tlpkg/backups
28 option_desktop_integration 0
33 option_menu_integration 1
37 option_sys_bin $PREFIX/bin
38 option_sys_info $PREFIX/local/share/info
39 option_sys_man $PREFIX/local/share/man
40 option_w32_multi_user 0
41 option_write18_restricted 1
46 #start installer with a profile and premade binaries
47 perl ./install-tl --custom-bin=$PREFIX/local/texlive/2016/bin/pkg --profile texlive_inst.profile
49 mkdir -p $PREFIX/etc/profile.d/
51 cat > $PREFIX/etc/profile.d/texlive.sh << XX
52 export PATH=$PATH:$PREFIX/local/texlive/2016/bin/custom
53 export TMPDIR=$PREFIX/tmp/
58 sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" $PREFIX/local/texlive/2016/tlpkg/TeXLive/TLUtils.pm