File: bug.script

package info (click to toggle)
texlive-lang 2009-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 197,212 kB
  • ctags: 1,803
  • sloc: perl: 10,832; ansic: 3,233; makefile: 657; sh: 652; lisp: 485; awk: 331; python: 283; ruby: 177; sed: 138; xml: 57; cs: 2
file content (87 lines) | stat: -rw-r--r-- 2,303 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# $Id: bug.script 3943 2009-05-22 12:11:09Z preining $
set -e

cat <<EOF

Please read and follow the instructions in the first lines below
the text: "-- Package-specific info:".
Thank you.

Press ENTER to continue
EOF

getkey

cat >&3 <<EOF
If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report. Don't forget to also include minimal examples of
other files that are needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.latex-einfuehrung.de/mini-en.html (english)

or 

http://www.latex-einfuehrung.de/mini.html (german)

##################################
minimal input file


##################################
other files

EOF

# unset error exit since those files might not be present...
set +e
for dir in $(kpsexpand '$TEXMF' | sed -e 's/,/ /g;s/[!{}]//g;'); do
  ls_R_files="$ls_R_files $(ls $dir/ls-R 2>/dev/null)";
done
ls_R_files="$ls_R_files $(ls /usr/share/texmf-texlive/ls-R 2>/dev/null)"

echo "######################################" >&3
echo " List of ls-R files" >&3
echo >&3
for file in $ls_R_files; do
  ls -l $file >&3
#  echo >&3
#  cat $file >&3
#  echo "######################################" >&3
done

echo "######################################" >&3
echo " Config files" >&3
for i in texmf.cnf fmtutil.cnf updmap.cfg ; do
  f=$(kpsewhich --format='web2c files' $i)
  if [ -z "$f" ] ; then
    echo "Warning: $i cannot be found with kpsewhich!" >&3
  else
    ls -l $f >&3
  fi
done
for i in language.dat ; do
  f=$(kpsewhich -progname=latex $i)
  if [ -z "$f" ] ; then
    echo "Warning: $i cannot be found with kpsewhich!" >&3
  else
    ls -l $f >&3
  fi
done

echo "######################################" >&3
echo " Files in /etc/texmf/web2c/" >&3
ls -l /etc/texmf/web2c/ >&3

echo "######################################" >&3
echo " md5sums of texmf.d" >&3
md5sum /etc/texmf/texmf.d/* >&3