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.
72 lines
1.3 KiB
72 lines
1.3 KiB
#!/bin/sh
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
scheme="$1"
|
|
|
|
echo "==> Install system packages"
|
|
#apk update
|
|
#apk --no-cache add \
|
|
# okular
|
|
# make \
|
|
# xz
|
|
#
|
|
|
|
|
|
# ###########################################
|
|
#
|
|
# Install additional packages for application e.g. xelatex
|
|
#
|
|
# ###########################################
|
|
|
|
if [ "$scheme" != "full" ]; then
|
|
# tlmgr install \
|
|
# fmtcount
|
|
# tlmgr update --self
|
|
|
|
echo "==> extra packages"
|
|
|
|
#extrap=/extrapackages
|
|
if [ -f $extrap ]; then
|
|
|
|
echo "no"
|
|
#while read -r line; do
|
|
#extrapackages="$extrapackages $line"
|
|
#done < $extrap
|
|
|
|
#tlmgr install $extrapackages
|
|
|
|
else
|
|
echo "No extrapackages file"
|
|
fi
|
|
|
|
# ###########################################
|
|
#
|
|
# additional config
|
|
#
|
|
# ###########################################
|
|
|
|
# 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 \
|
|
/texlive.profile \
|
|
/texlive_pgp_keys.asc \
|
|
/tmp/install-tl \
|
|
/tmp/install-tl-unx
|
|
|