+++ /dev/null
-#!@SHELL@
-# /etc/profile.d/lily-gs.sh -- Check for GhostScript and GSView
-
-
-gs550="/usr/windows/gstools/gs5.50"
-gs650="/usr/windows/gs/gs6.50/bin"
-
-gsview26="/usr/windows/gstools/gsview"
-gsview36="/usr/windows/Ghostgum/GSview"
-
-# Maybe read registry, but that may be hairy?
-#
-# $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
-# "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
-
-
-
-## we set GS_LIB although the registry keys have been set.
-##
-
-if [ -e "$gs550/gswin32.exe" ]; then
- PATH="$gs550:$PATH"
- GS_LIB='C:\cygwin\usr\windows\gs\gs5.50\lib'
-fi
-
-if [ -e "$gs650/gswin32.exe" ]; then
- PATH="$gs650:$PATH"
- GS_LIB='C:\cygwin\usr\windows\gs\gs6.50\lib'
-fi
-
-if [ -e "$gsview26/gsview32.exe" ]; then
- PATH="$gsview26:$PATH"
-fi
-
-if [ -e "$gsview36/gsview32.exe" ]; then
- PATH="$gsview36:$PATH"
-fi
-
-
-
-
-export GS_LIB
-export PATH
+++ /dev/null
-#!@SHELL@
-# /etc/profile.d/lily-miktex.sh -- Check for MiKTeX
-
-
-# Educated guess in case we have no regtool
-a="//c/Program Files/MiKTeX"
-
-# Registry entry
-reg="$(regtool -q get 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\')"
-b="$(cygpath -u ""$reg"")"
-
-# Where we installed it
-c="/usr/windows/MiKTeX"
-
-for i in "$a" "$b" "$c"; do
- if [ -d "$i" ]; then
- texmf="$i"
- fi
-done
-
-PATH="$texmf/miktex/bin:$PATH"
-
+++ /dev/null
-#!@SHELL@
-# /etc/profile.d/post-python.sh -- Check for Python
-
-# Educated guess in case we have no regtool
-a="//c/Program Files/Python"
-
-# Registry entry
-reg="$(regtool -q get 'HKLM\Software\Python\PythonCore\1.5\InstallPath\')"
-b="$(cygpath -u ""$reg"")"
-
-# Where we installed it
-c="/usr/windows/Python"
-
-for i in "$a" "$b" "$c"; do
- if [ -d "$i" ]; then
- python="$i"
- fi
-done
-
-PATH="$python:$PATH"
+++ /dev/null
-#!@SHELL@
-# /etc/postinstall/post-gs.sh -- Install GS and GSView
-
-
-gs550="/usr/windows/gstools/gs5.50"
-gs650="/usr/windows/gs/gs6.50"
-
-gsview26="/usr/windows/gstools/gsview"
-gsview36="/usr/windows/Ghostgum/GSview"
-
-# maybe set this too, but how (what type is value, a list?)
-# $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
-# "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
-
-# gsview needs gs register entries, so it seems
-
-if [ -e "$gs550/gswin32.exe" ]; then
- regtool -s set 'HKLM\Software\Aladdin Ghostscript\5.50\GS_LIB' \
- "c:\cygwin\windows\gstools\gs5.50;c:\cygwin\windows\gstools\gs5.50\fonts"
- regtool -s set 'HKLM\Software\Aladdin Ghostscript\5.50\GS_DLL' \
- "c:\cygwin\windows\gstools\gs5.50\\gsdll32.dll"
-fi
-
-if [ -e "$gs650/gswin32.exe" ]; then
- regtool -s set 'HKLM\Software\AFPL Ghostscript\6.50\GS_DLL' \
- "C:\cygwin\windows\gs\gs6.50\bin\gsdll32.dll"
- regtool -s set 'HKLM\Software\AFPL Ghostscript\6.50\GS_LIB' \
- "C:\cygwin\windows\gs\gs6.50\lib;C:\cygwin\windows\gs\fonts"
-fi
-
-# nothing to be done
-if [ -e "$gsview26/gsview32.exe" ]; then
- true
-fi
-
-if [ -e "$gsview36/gsview32.exe" ]; then
- regtool -s set 'HKLM\Software\Ghostgum\GSview\3.6' \
- "C:\cygwin\windows\Ghostgum"
-fi
-
-# What's in the registry
-
-# regtool -v list HKLM\Software\Aladdin Ghostscript\5.50
-# GS_LIB = "c:\cygwin\windows\gstools\gs5.50;c:\cygwin\windows\gstools\gs5.50\fonts"
-# GS_DLL = "c:\cygwin\windows\gstools\gs5.50\\gsdll32.dll"
-
-# regtool -v list HKLM\Software\Ghostgum\GSview
-# 3.6 = "C:\cygwin\windows\Ghostgum"
-
-# regtool -v list HKLM\Software\AFPL Ghostscript\6.50
-# GS_DLL = "C:\cygwin\windows\gs\gs6.50\bin\gsdll32.dll"
-# GS_LIB = "C:\cygwin\windows\gs\gs6.50\lib;C:\cygwin\windows\gs\fonts"
-
-
+++ /dev/null
-#!@SHELL@
-# /etc/profile.d/post-lily.sh -- Setup LilyPond
-
-rm -f /usr/lilypond
-lily=@prefix@
-ln -s $lily /usr/lilypond
-
-
+++ /dev/null
-#!@SHELL@
-# /etc/profile.d/post-miktex.sh -- Setup MiKTeX
-
-
-# Educated guess in case we have no regtool
-a="//c/Program Files/MiKTeX"
-
-# Registry entry
-reg="$(regtool -q get 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\')"
-b="$(cygpath -u ""$reg"")"
-
-# Where we installed it
-c="/usr/windows/MiKTeX"
-
-for i in "$a" "$b" "$c"; do
- if [ -d "$i" ]; then
- texmf="$i"
- fi
-done
-
-rm -f /usr/share/texmf
-ln -s "$texmf" /usr/share/texmf
-
-# What's in the registry
-# $ regtool -s set 'HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX\Install Root\' "C:\cygwin\usr\windows\MiKTeX"
-
-# regtool -v list HKLM\Software\MiK\MiKTeX\CurrentVersion\MiKTeX
-# TEXMF Root Directories = "C:\cygwin\usr\windows\miktex\spool\texmf;C:\cygwin\windows\MiKTeX"
-# Install Root = "C:\cygwin\usr\windows\MiKTeX"
-
+++ /dev/null
-#!@SHELL@
-# /etc/profile.d/post-python.sh -- Setup Python
-
-# Educated guess in case we have no regtool
-a="//c/Program Files/Python"
-
-# Registry entry
-reg="$(regtool -q get 'HKLM\Software\Python\PythonCore\1.5\InstallPath\')"
-b="$(cygpath -u ""$reg"")"
-
-# Where we installed it
-c="/usr/windows/Python"
-
-for i in "$a" "$b" "$c"; do
- if [ -d "$i" ]; then
- python="$i"
- fi
-done
-
-# What's in the registry
-
-# regtool -v list HKLM\Software\Python\PythonCore\1.5
-# InstallPath\ ()
-# PythonPath\ ()
-# Dll\ ()
-# Modules\ ()
-
-# regtool -v list HKLM\Software\Python\PythonCore\1.5\InstallPath
-# InstallGroup\ ()
-# = "C:\cygwin\usr\windows\Python"
-
-# regtool -v list HKLM\Software\Python\PythonCore\1.5\PythonPath
-# = "C:\cygwin\usr\windows\Python\Lib\plat-win;C:\cygwin\usr\windows\Python\Lib;C:\cygwin\usr\windows\Python\DLLs;C:\cygwin\usr\windows\Python\Lib\lib-tk"
-
-# regtool -v list HKLM\Software\Python\PythonCore\1.5\Dll
-# = "C:\WINDOWS\SYSTEM\Python15.dll"
-
-# regtool -v list HKLM\Software\Python\PythonCore\1.5\Modules\
-# = ""
-
-
+++ /dev/null
-#!@SHELL@
-# @name@.sh -- @name@ wrapper for Windows
-
-if echo | python - >/dev/null 2>&1; then
- echo
-else
- cat <<EOF
-Python not found. Install python-2.1-1 from http://cygwin.com
-Make sure python.exe in in your PATH
-EOF
- exit 1
-fi
-python "@prefix@/bin/@name@.py" $*
+++ /dev/null
-#!@SHELL@
-# @name@.sh -- @name@ wrapper for Windows
-
-MFINPUTS="$WINDOWS_MFINPUTS"
-TEXINPUTS="$WINDOWS_TEXINPUTS"
-TFMFONTS="$WINDOWS_TFMFONTS"
-
-export MFINPUTS TEXINPUTS TFMFONTS
-
-@name@.exe @OPTIONS@ $*
-