Tesi magistrale
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.

32 lines
1.0 KiB

  1. #!/usr/bin/env sh
  2. # Originally from https://github.com/PHPirates/travis-ci-latex-pdf
  3. # This script is used for building LaTeX files using Travis
  4. # A minimal current TL is installed adding only the packages that are
  5. # required
  6. TEXLIVE_TAR_URL="http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz"
  7. # See if there is a cached version of TL available
  8. export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
  9. if ! command -v texlua > /dev/null; then
  10. # Obtain TeX Live
  11. wget $TEXLIVE_TAR_URL
  12. tar -xzf $(basename $TEXLIVE_TAR_URL)
  13. # Install a minimal system
  14. cd install-tl-20*
  15. ./install-tl --profile=../texlive/texlive.profile
  16. cd ..
  17. fi
  18. # Just including texlua so the cache check above works
  19. tlmgr install luatex
  20. # We specify the directory in which it is located texlive_packages
  21. tlmgr install $(sed 's/\s*#.*//;/^\s*$/d' texlive/texlive_packages)
  22. # Keep no backups (not required, simply makes cache bigger)
  23. tlmgr option -- autobackup 0
  24. # Update the TL install but add nothing new
  25. tlmgr update --self --all --no-auto-install