* lily/simultaneous-music-iterator.cc
[lilypond.git] / cygwin / bug-lilypond-cygwin.sh
blob0db601ea8207bb6416e27130e0444ccc6bc4fb57
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 ly2dvi --version
47 echo
48 echo Test runs
49 echo =========
50 mkdir -p /tmp/lily
51 cd /tmp/lily
52 rm -f example-1.* sample2e.*
53 ls -l
54 latex \\nonstopmode \\input sample2e
55 kpsewhich feta20.mf
56 kpsewhich feta20.pk
57 cp $docdir/input/example-1.ly .
58 cp $docdir/input/example-2.ly .
59 lilypond example-1.ly
60 tex \\nonstopmode \\input example-1.tex
61 dvips -o example-1.ps example-1.dvi
62 ls -l
63 ly2dvi --verbose example-2
64 ls -l
66 echo
67 echo Environment settings
68 echo ====================
69 # If python is ok and ly2dvi runs, this all is not really necessary.
70 echo HOME="<$HOME>"
71 echo SHELL="<$SHELL>"
72 echo LILYPONDPREFIX="<$LILYPONDPREFIX>"
73 echo TEXMF="<$TEXMF>"
74 echo MFINPUTS="<$MFINPUTS>"
75 echo TFMFONTS="<$TFMFONTS>"
76 echo TEXINPUTS="<$TEXINPUTS>"
77 # do we want to know all?
78 #set
80 echo
81 echo System information
82 echo ==================
83 uname -a
84 cygcheck -s
86 if false; then
87 cat /var/log/setup.log
88 # cat /var/log/setup.log.full