2 # /usr/bin/bug-lilypond-cygwin.sh -- harvest relevant info for bugreport
5 # * add some kpathsea tricks
6 # * distribute for other platforms too
7 # * failure/success tracking and indication (-> rewrite in python)
12 # Running this in new shell may yield deceptive results
13 if [ "$name" = "bug-lilypond-cygwin" ]; then
16 Please source this script, ie do:
18 . /usr/bin/bug-lilypond-cygwin > bug.txt
23 docdir
=@prefix@
/share
/doc
/lilypond-@TOPLEVEL_VERSION@
-1
24 [ ! -d $docdir ] && docdir
=@prefix@
/doc
/lilypond-@TOPLEVEL_VERSION@
-1
25 [ ! -d $docdir ] && docdir
=$
(echo @prefix@
/share
/doc
/lilypond-
[.
-0-9]*)
26 [ ! -d $docdir ] && docdir
=$
(echo @prefix@
/doc
/lilypond-
[.
-0-9]*)
29 echo Availability of executables
30 echo ===========================
41 type -p lilypond-bin.exe
44 lilypond-bin
--version
54 rm -f example-1.
* sample2e.
*
56 latex
\\nonstopmode
\\input sample2e
59 cp $docdir/input
/example-1.ly .
60 cp $docdir/input
/example-2.ly .
62 latex
\\nonstopmode
\\input example-1.tex
63 dvips
-o example-1.ps example-1.dvi
65 lilypond
--verbose example-2
69 echo Environment settings
70 echo ====================
71 # If python is ok and lilypond runs, this all is not really necessary.
74 echo LILYPONDPREFIX
="<$LILYPONDPREFIX>"
76 echo MFINPUTS
="<$MFINPUTS>"
77 echo TFMFONTS
="<$TFMFONTS>"
78 echo TEXINPUTS
="<$TEXINPUTS>"
79 # do we want to know all?
83 echo Registry settings
84 echo =================
85 regtool get
/root
/.ly
/
86 regtool get
/root
/LilyPond
/
87 regtool get
/root
/LilyPond
/shell
/open
/command
/
88 regtool get
/root
/.pdf
/
89 pdfname
=$
(regtool get
/root
/.pdf
/)
90 regtool get
/root
/$pdfname/shell
/open
/command
/
91 regtool get
/root
/AcroExch.Document
/shell
/open
/command
/
94 echo System information
95 echo ==================
100 cat /var
/log
/setup.log
101 # cat /var/log/setup.log.full