You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

3 years ago
#!/bin/sh
set -e
set -o pipefail
scheme="$1"
3 years ago
echo "==> Install system packages"
3 years ago
#apk update
#apk --no-cache add \
# okular
3 years ago
# make \
# xz
#
# Install additional packages for non full scheme
if [ "$scheme" != "full" ]; then
# tlmgr install \
# fmtcount
3 years ago
# tlmgr update --self
3 years ago
echo "==> extra packages"
3 years ago
#extrap=/extrapackages
3 years ago
if [ -f $extrap ]; then
3 years ago
echo "no"
#while read -r line; do
#extrapackages="$extrapackages $line"
#done < $extrap
3 years ago
3 years ago
#tlmgr install $extrapackages
3 years ago
else
echo "No extrapackages file"
fi
# cp /usr/local/texlive/2020/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
# apk add --no-cache msttcorefonts-installer
3 years ago
# update-ms-fonts
3 years ago
3 years ago
# fc-cache -f
3 years ago
fi
3 years ago
#texhash
3 years ago
echo "==> Clean up"
rm -rf \
/opt/texlive/texdir/install-tl \
/opt/texlive/texdir/install-tl.log \
/opt/texlive/texdir/texmf-dist/doc \
/opt/texlive/texdir/texmf-dist/source \
/opt/texlive/texdir/texmf-var/web2c/tlmgr.log \
/root/.gnupg \
/texlive.profile \
/texlive_pgp_keys.asc \
/tmp/install-tl \
/tmp/install-tl-unx