]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/bug-lilypond-cygwin.sh
* cygwin/GNUmakefile: [CYGWIN] Install bug-lilypond-cygwin.
[lilypond.git] / cygwin / bug-lilypond-cygwin.sh
1 #!@SHELL@
2 # /usr/bin/bug-lilypond-cygwin.sh -- harvest relevant info for bugreport
3 #
4 # Ideas
5 #   * add some kpathsea tricks
6 #   * distribute for other platforms too
7 #   * failure/success tracking and indication (-> rewrite in python)
8
9 set -x
10
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:
17
18     . /usr/bin/bug-lilypond-cygwin > bug.txt
19
20 EOF
21 fi
22
23 docdir=@prefix@/share/doc/lilypond-@TOPLEVEL_VERSION@
24 if [ ! -d $docdir ]; then
25     docdir=@prefix@/doc/lilypond-@TOPLEVEL_VERSION@
26 fi
27
28 echo
29 echo Availability of executables
30 echo ===========================
31 type -p tex
32 type -p latex
33 type -p lilypond
34 type -p python
35 type -p ly2dvi
36
37 type -p tex.exe
38 type -p latex.exe
39 type -p lilypond.exe
40 type -p python.exe
41
42 lilypond --version
43 ly2dvi --version
44
45
46 echo
47 echo Test runs
48 echo =========
49 mkdir -p /tmp/lily
50 cd /tmp/lily
51 rm -f example-1.* sample2e.*
52 ls -l
53 latex \\nonstopmode \\input sample2e
54 cp $docdir/input/example-1.ly .
55 cp $docdir/input/example-2.ly .
56 lilypond example-1.ly
57 tex \\nonstopmode \\input example-1.tex
58 dvips -o example-1.ps example-1.dvi
59 ls -l
60 ly2dvi --verbose example-2
61 ls -l
62
63 echo
64 echo Environment settings
65 echo ====================
66 echo HOME="<$HOME>"
67 echo SHELL="<$SHELL>"
68 echo LILYPONDPREFIX="<$LILYPONDPREFIX>"
69 echo TEXMF="<$TEXMF>"
70 echo MFINPUTS="<$MFINPUTS>"
71 echo TFMFONTS="<$TFMFONTS>"
72 echo TEXINPUTS="<$TEXINPUTS>"
73
74
75 echo
76 echo System information
77 echo ==================
78 uname -a
79 cygcheck -s
80
81 if false; then
82     cat /var/log/setup.log
83     # cat /var/log/setup.log.full
84 fi