2 # /etc/profile.d/lily-tex.sh -- Check for TeX or try to setup MiKTeX
4 texmf='//c/Program Files/MiKTeX'
5 texmf_bin='//c/Program Files/MiKTeX/miktex'
7 if [ ! -e /usr/share/texmf ]; then
8 echo /usr/share/texmf not found
9 if [ -e "$texmf" ]; then
10 ln -s "$texmf" /usr/share/texmf
11 echo MiKTeX found: linked to "$texmf"
13 echo setup /usr/share/texmf yourself
18 if [ -e "$texmf_bin" ]; then
19 echo MiKTeX found: added "$texmf_bin" to PATH
20 PATH=`cygpath -u "$texmf/miktex"`:"$PATH"