~pablo-pie/tikztosvg

2024b2a2f08bcebd67188b34447cc30001013823 — Pablo 3 years ago f35d892
Added runtime checks for the --xelatex and --pdflatex option

This is necessary so that xelatex and pdflatex can be marked as optional
dependencies in package managers.

There are no checks for lualatex since it is the default TeX engine,
i.e. is is required for the application to function.
1 files changed, 12 insertions(+), 2 deletions(-)

M tikztosvg
M tikztosvg => tikztosvg +12 -2
@@ 110,11 110,21 @@ do
      shift
      ;;
    --xelatex)
      texengine='xelatex'
      if command -v xelatex > /dev/null
      then
        texengine='xelatex'
      else
        error "Couldn't find xelatex: required by the --xelatex option"
      fi
      shift
      ;;
    --pdflatex)
      texengine='pdflatex'
      if command -v pdflatex > /dev/null
      then
        texengine='pdflatex'
      else
        error "Couldn't find pdflatex: required by the --pdflatex option"
      fi
      shift
      ;;
    *)