summaryrefslogtreecommitdiff
path: root/include/texlive.sh
blob: a13b2d0381a6fabf2d100c8a24ddcd8ec64cf407 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
source /eng/ssb/auto/astroconda/include/sysinfo.sh

TL_HOME=/eng/ssb/sw/texlive

# Be realistic - I already know what's in there... 32/64-linux
if [[ $sysinfo_platform != Linux ]]; then
    echo "FATAL: $TL_HOME does not contain libraries for your platform."
    exit 1
fi

TL_PLATFORM=`$TL_HOME/install-tl --print-platform`
export PATH="$TL_HOME/bin/${TL_PLATFORM}:$PATH"

if [[ `which latex` != $TL_HOME/* ]]; then
    echo "WARNING: TexLive is not where we wanted it to be! $TL_HOME may be broken or missing."
else
    echo "Using TexLive: $TL_HOME"
fi