]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/lily-miktex.sh
eb14f1679100e07155fd26a205ec84f86d3d067f
[lilypond.git] / Documentation / windows / lily-miktex.sh
1 #!@SHELL@
2 # /etc/profile.d/lily-miktex.sh -- Check for MiKTeX
3
4
5 # Educated guess in case we have no regtool
6 a="//c/Program Files/MiKTeX"
7
8 # Registry entry
9 reg="$(regtool -q get 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\')"
10 b="$(cygpath -u ""$reg"")"
11
12 # Where we installed it
13 c="/usr/windows/MiKTeX"
14
15 for i in "$a" "$b" "$c"; do
16         if [ -d "$i" ]; then
17                 texmf="$i"
18         fi
19 done
20
21 PATH="$texmf/miktex/bin:$PATH"
22