diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-20 15:42:41 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-20 15:42:41 -0400 |
commit | de413e7ae293f2b919e2e75369c1ecb8a0c83975 (patch) | |
tree | 143ea097ea9e740c48b62335d468e9b0543be7b3 /include/texlive.sh | |
download | astroconda-control-de413e7ae293f2b919e2e75369c1ecb8a0c83975.tar.gz |
Initial commit
Diffstat (limited to 'include/texlive.sh')
-rw-r--r-- | include/texlive.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/texlive.sh b/include/texlive.sh new file mode 100644 index 0000000..a13b2d0 --- /dev/null +++ b/include/texlive.sh @@ -0,0 +1,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 + + |