2 # /etc/profile.d/post-miktex.sh -- Setup MiKTeX
5 # Educated guess in case we have no regtool
6 a="//c/Program Files/MiKTeX"
9 reg="$(regtool -q get 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\')"
10 b="$(cygpath -u ""$reg"")"
12 # Where we installed it
13 c=texmf="/usr/windows/MiKTeX"
15 for i in "$a" "$b" "$c"; do
21 rm -f /usr/share/texmf
22 ln -s "$texmf" /usr/share/texmf
24 # What's in the registry
25 # $ regtool -s set 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\' "C:\cygwin\usr\windows\MiKTeX"
27 # regtool -v list HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX
28 # TEXMF Root Directories = "C:\cygwin\usr\windows\miktex\spool\texmf;C:\cygwin\windows\MiKTeX"
29 # Install Root = "C:\cygwin\usr\windows\MiKTeX"