]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/lily-tex.sh
d2caa6c22bed123c46c3772831c484e930abb030
[lilypond.git] / Documentation / windows / lily-tex.sh
1 #!/bin/bash
2 # /etc/profile.d/lily-tex.sh -- Check for TeX or try to setup MiKTeX
3
4 texmf='//c/Program Files/MiKTeX'
5 texmf_bin='//c/Program Files/MiKTeX/miktex'
6
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"
12         else
13                 echo setup /usr/share/texmf yourself
14         fi
15 fi
16 if type -p tex; then
17         echo no TeX in PATH
18         if [ -e "$texmf_bin" ]; then
19                 echo MiKTeX found: added "$texmf_bin" to PATH
20                 PATH=`cygpath -u "$texmf/miktex"`:"$PATH"
21         fi
22 fi
23