*** empty log message ***
[lilypond.git] / cygwin / bug-lilypond-cygwin.sh
blob1c61929e5865b529393dd1aa39b19aee7692e87b
1 #!@SHELL@
2 # /usr/bin/bug-lilypond-cygwin.sh -- harvest relevant info for bugreport
4 # Ideas
5 # * add some kpathsea tricks
6 # * distribute for other platforms too
7 # * failure/success tracking and indication (-> rewrite in python)
9 set -x
11 name="$(basename $0)"
12 # Running this in new shell may yield deceptive results
13 if [ "$name" = "bug-lilypond-cygwin" ]; then
14 # HMM
15 cat <<EOF
16 Please source this script, ie do:
18 . /usr/bin/bug-lilypond-cygwin > bug.txt
20 EOF
23 docdir=@prefix@/share/doc/lilypond-@TOPLEVEL_VERSION@-1
24 [ ! -d $docdir ] && docdir=@prefix@/doc/lilypond-@TOPLEVEL_VERSION@-1
25 [ ! -d $docdir ] && docdir=$(echo /usr/doc/lilypond-[0-9]*)
27 echo
28 echo Availability of executables
29 echo ===========================
30 type -p tex
31 type -p latex
32 type -p kpsewhich
33 type -p lilypond
34 type -p python
35 type -p ly2dvi
37 type -p tex.exe
38 type -p latex.exe
39 type -p kpsewhich.exe
40 type -p lilypond.exe
41 type -p python.exe
43 lilypond --version
44 python -V
45 ly2dvi --version
48 echo
49 echo Test runs
50 echo =========
51 mkdir -p /tmp/lily
52 cd /tmp/lily
53 rm -f example-1.* sample2e.*
54 ls -l
55 latex \\nonstopmode \\input sample2e
56 kpsewhich feta20.mf
57 kpsewhich feta20.pk
58 cp $docdir/input/example-1.ly .
59 cp $docdir/input/example-2.ly .
60 lilypond example-1.ly
61 tex \\nonstopmode \\input example-1.tex
62 dvips -o example-1.ps example-1.dvi
63 ls -l
64 ly2dvi --verbose example-2
65 ls -l
67 echo
68 echo Environment settings
69 echo ====================
70 # If python is ok and ly2dvi runs, this all is not really necessary.
71 echo HOME="<$HOME>"
72 echo SHELL="<$SHELL>"
73 echo LILYPONDPREFIX="<$LILYPONDPREFIX>"
74 echo TEXMF="<$TEXMF>"
75 echo MFINPUTS="<$MFINPUTS>"
76 echo TFMFONTS="<$TFMFONTS>"
77 echo TEXINPUTS="<$TEXINPUTS>"
78 # do we want to know all?
79 #set
81 echo
82 echo System information
83 echo ==================
84 uname -a
85 cygcheck -s
87 if false; then
88 cat /var/log/setup.log
89 # cat /var/log/setup.log.full