2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-07-30 15:56:48 +00:00
|
|
|
APP=$(basename "$0" | sed 's/^mk//')
|
2022-07-13 04:39:09 +00:00
|
|
|
DIR=/tmp/appdwarf/$APP
|
|
|
|
mkdir -p "$DIR"
|
2022-03-24 22:25:24 +00:00
|
|
|
LINK=https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
|
2022-07-13 04:39:09 +00:00
|
|
|
curl -L $LINK | tar xz -C"$DIR"
|
|
|
|
mv "$DIR"/install-tl-* "$DIR"/tl
|
|
|
|
cat > "$DIR"/tl/prof << 'EOF'
|
2022-03-24 22:25:24 +00:00
|
|
|
selected_scheme scheme-custom
|
|
|
|
TEXDIR /tmp/appdwarf/tex
|
|
|
|
TEXMFCONFIG $TEXMFSYSCONFIG
|
|
|
|
TEXMFHOME $TEXMFLOCAL
|
|
|
|
TEXMFLOCAL /tmp/appdwarf/tex/texmf-local
|
|
|
|
TEXMFSYSCONFIG /tmp/appdwarf/tex/texmf-config
|
|
|
|
TEXMFSYSVAR /tmp/appdwarf/tex/texmf-var
|
|
|
|
TEXMFVAR $TEXMFSYSVAR
|
|
|
|
binary_x86_64-linux 1
|
|
|
|
collection-basic 1
|
|
|
|
collection-binextra 1
|
|
|
|
collection-latex 1
|
|
|
|
collection-latexrecommended 1
|
|
|
|
instopt_adjustpath 1
|
|
|
|
instopt_adjustrepo 1
|
|
|
|
instopt_letter 0
|
|
|
|
instopt_portable 1
|
|
|
|
instopt_write18_restricted 1
|
|
|
|
tlpdbopt_autobackup 0
|
|
|
|
tlpdbopt_backupdir tlpkg/backups
|
|
|
|
tlpdbopt_create_formats 1
|
|
|
|
tlpdbopt_desktop_integration 1
|
|
|
|
tlpdbopt_file_assocs 1
|
|
|
|
tlpdbopt_generate_updmap 0
|
|
|
|
tlpdbopt_install_docfiles 0
|
|
|
|
tlpdbopt_install_srcfiles 0
|
|
|
|
tlpdbopt_post_code 1
|
|
|
|
tlpdbopt_sys_bin /usr/local/bin
|
|
|
|
tlpdbopt_sys_info /usr/local/share/info
|
|
|
|
tlpdbopt_sys_man /usr/local/share/man
|
|
|
|
tlpdbopt_w32_multi_user 1
|
|
|
|
EOF
|
2022-07-13 04:39:09 +00:00
|
|
|
"$DIR"/tl/install-tl -profile "$DIR"/tl/prof
|
2022-09-11 21:32:34 +00:00
|
|
|
rm -r "$DIR"/texmf-dist/scripts/tlcockpit
|
2022-07-13 04:39:09 +00:00
|
|
|
appdwarf -b "$DIR"/AppRun
|
2022-09-11 21:32:34 +00:00
|
|
|
sed -i 2,4s#/bin#/bin/x86_64-linux# "$DIR"/AppRun
|
2022-07-13 04:39:09 +00:00
|
|
|
appdwarf "$DIR"
|
|
|
|
mv "$DIR".sh "$APP"
|
|
|
|
rm -rf "$DIR"
|