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.
59 lines
1.0 KiB
59 lines
1.0 KiB
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
set -o pipefail
|
||
|
|
||
|
scheme="$1"
|
||
|
|
||
|
echo "==> Install system packages"
|
||
|
apk --no-cache add \
|
||
|
bash \
|
||
|
make \
|
||
|
xz
|
||
|
|
||
|
# Install additional packages for non full scheme
|
||
|
if [ "$scheme" != "full" ]; then
|
||
|
tlmgr install \
|
||
|
fmtcount
|
||
|
|
||
|
echo "==> extra packages"
|
||
|
|
||
|
extrap=/extrapackages
|
||
|
if [ -f $extrap ]; then
|
||
|
|
||
|
while read -r line; do
|
||
|
extrapackages="$extrapackages $line"
|
||
|
done < $extrap
|
||
|
|
||
|
tlmgr install $extrapackages
|
||
|
|
||
|
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
|
||
|
|
||
|
update-ms-fonts
|
||
|
|
||
|
fc-cache -f
|
||
|
fi
|
||
|
|
||
|
texhash
|
||
|
|
||
|
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 \
|
||
|
/setup.sh \
|
||
|
/extrapackages \
|
||
|
/texlive.profile \
|
||
|
/texlive_pgp_keys.asc \
|
||
|
/tmp/install-tl \
|
||
|
/tmp/install-tl-unx
|