]> git.donarmstrong.com Git - lilypond.git/blobdiff - cygwin/bug-lilypond-cygwin.sh
* Documentation/user/notation.itely: Added section on fret diagrams.
[lilypond.git] / cygwin / bug-lilypond-cygwin.sh
index 9599f0af3c5baa3cbfc898b102db50ab865c7c0e..e3e0925d1baff6e9f0ffad256ff74b8f9b11bc7f 100644 (file)
@@ -21,26 +21,29 @@ EOF
 fi
 
 docdir=@prefix@/share/doc/lilypond-@TOPLEVEL_VERSION@
-if [ ! -d $docdir ]; then
-    docdir=@prefix@/doc/lilypond-@TOPLEVEL_VERSION@
-fi
+[ ! -d $docdir ] && docdir=@prefix@/doc/lilypond-@TOPLEVEL_VERSION@-1
+[ ! -d $docdir ] && docdir=$(echo @prefix@/share/doc/lilypond-[.-0-9]*)
+[ ! -d $docdir ] && docdir=$(echo @prefix@/doc/lilypond-[.-0-9]*)
 
 echo
 echo Availability of executables
 echo ===========================
 type -p tex
 type -p latex
-type -p lilypond
+type -p kpsewhich
+type -p lilypond-bin
 type -p python
-type -p ly2dvi
+type -p lilypond
 
 type -p tex.exe
 type -p latex.exe
-type -p lilypond.exe
+type -p kpsewhich.exe
+type -p lilypond-bin.exe
 type -p python.exe
 
+lilypond-bin --version
+python -V
 lilypond --version
-ly2dvi --version
 
 
 echo
@@ -51,18 +54,21 @@ cd /tmp/lily
 rm -f example-1.* sample2e.*
 ls -l
 latex \\nonstopmode \\input sample2e
+kpsewhich feta20.mf
+kpsewhich feta20.pk
 cp $docdir/input/example-1.ly .
 cp $docdir/input/example-2.ly .
 lilypond example-1.ly
-tex \\nonstopmode \\input example-1.tex
+latex \\nonstopmode \\input example-1.tex
 dvips -o example-1.ps example-1.dvi
 ls -l
-ly2dvi --verbose example-2
+lilypond --verbose example-2
 ls -l
 
 echo
 echo Environment settings
 echo ====================
+# If python is ok and lilypond runs, this all is not really necessary.
 echo HOME="<$HOME>"
 echo SHELL="<$SHELL>"
 echo LILYPONDPREFIX="<$LILYPONDPREFIX>"
@@ -70,7 +76,19 @@ echo TEXMF="<$TEXMF>"
 echo MFINPUTS="<$MFINPUTS>"
 echo TFMFONTS="<$TFMFONTS>"
 echo TEXINPUTS="<$TEXINPUTS>"
+# do we want to know all?
+#set
 
+echo
+echo Registry settings
+echo =================
+regtool get /root/.ly/
+regtool get /root/LilyPond/
+regtool get /root/LilyPond/shell/open/command/
+regtool get /root/.pdf/
+pdfname=$(regtool get /root/.pdf/)
+regtool get /root/$pdfname/shell/open/command/
+regtool get /root/AcroExch.Document/shell/open/command/
 
 echo
 echo System information
@@ -82,3 +100,5 @@ if false; then
     cat /var/log/setup.log
     # cat /var/log/setup.log.full
 fi
+
+