Debian Codegraph @

debian/texlive-binaries.bug-script

raw
1 #!/bin/bash
2 # bug script for TeX Live packages
3
4 set -e
5
6 cat <<EOF
7
8 Please read and follow the instructions in the first lines below
9 the text: "-- Package-specific info:".
10 Thank you.
11
12 Please don't add attachments > 100KB. They won't make it through
13 our mailing list and we won't see the report!
14
15 Press ENTER to continue
16 EOF
17
18 getkey
19
20 cat >&3 <<EOF
21 IMPORTANT INFORMATION: We will only consider bug reports concerning
22 the packaging of TeX Live as relevant. If you have problems with
23 combination of packages in a LaTeX document, please consult your
24 local TeX User Group, the comp.text.tex user group, the author of
25 the original .sty file, or any other help resource.
26
27 In particular, bugs that are related to up-upstream, i.e., neither
28 Debian nor TeX Live (upstream), but the original package authors,
29 will be closed immediately.
30
31 *** The Debian TeX Team is *not* a LaTeX Help Desk ***
32
33 If you report an error when running one of the TeX-related binaries
34 (latex, pdftex, metafont,...), or if the bug is related to bad or wrong
35 output, please include a MINIMAL example input file that produces the
36 error in your report.
37
38 Please run your example with
39 (pdf)latex -recorder ...
40 (or any other program that supports -recorder) and send us the generated
41 file with the extension .fls, it lists all the files loaded during
42 the run and can easily explain problems induced by outdated files in
43 your home directory.
44
45 Don't forget to also include minimal examples of other files that are
46 needed, e.g. bibtex databases. Often it also helps
47 to include the logfile. Please, never send included pictures!
48
49 If your example file isn't short or produces more than one page of
50 output (except when multiple pages are needed to show the problem),
51 you can probably minimize it further. Instructions on how to do that
52 can be found at
53
54 http://www.minimalbeispiel.de/mini-en.html (english)
55
56 or
57
58 http://www.minimalbeispiel.de/mini.html (german)
59
60 ##################################
61 minimal input file
62
63
64 ##################################
65 other files
66
67 EOF
68
69 # unset error exit since those files might not be present...
70 set +e
71 for dir in $(kpsexpand '$TEXMF' | sed -e 's/,/ /g;s/[!{}]//g;'); do
72 ls_R_files="$ls_R_files $(ls $dir/ls-R 2>/dev/null)";
73 done
74 ls_R_files="$ls_R_files $(ls /usr/share/texlive/texmf*/ls-R 2>/dev/null)"
75
76 echo "######################################" >&3
77 echo " List of ls-R files" >&3
78 echo >&3
79 for file in $ls_R_files; do
80 ls -l $file >&3
81 # echo >&3
82 # cat $file >&3
83 # echo "######################################" >&3
84 done
85
86 echo "######################################" >&3
87 echo " Config files" >&3
88 for i in texmf.cnf fmtutil.cnf updmap.cfg ; do
89 f=$(kpsewhich --format='web2c files' $i)
90 if [ -z "$f" ] ; then
91 echo "Warning: $i cannot be found with kpsewhich!" >&3
92 else
93 ls -l $f >&3
94 fi
95 done
96 for i in language.dat ; do
97 f=$(kpsewhich -progname=latex $i)
98 if [ -z "$f" ] ; then
99 echo "Warning: $i cannot be found with kpsewhich!" >&3
100 else
101 ls -l $f >&3
102 fi
103 done
104
105 echo "######################################" >&3
106 echo " Files in /etc/texmf/web2c/" >&3
107 ls -l /etc/texmf/web2c/ >&3
108
109 echo "######################################" >&3
110 echo " md5sums of texmf.d" >&3
111 md5sum /etc/texmf/texmf.d/* >&3
112