*** empty log message ***
[wmaker-crm.git] / util / bughint
blob2d2a641c63016026d58c5cacf7f76efe18de8c6f
1 #!/bin/sh
4 # Use this to gather data about your system and send me
5 # the sysinfo.txt file with your bugreport, plus any error
6 # messages you've received. This program should be run under X.
10 echo gathering information for bug tracking...
12 uname -a > sysinfo.txt
13 echo "=============== xdpyinfo ================" >> sysinfo.txt
14 xdpyinfo >> sysinfo.txt
15 echo "=============== env ================" >> sysinfo.txt
16 env >> sysinfo.txt
17 echo "=============== ldconfig ================" >> sysinfo.txt
18 if [ `uname` = 'Linux' ]; then
19 /sbin/ldconfig -p >> sysinfo.txt
20 else
21 /sbin/ldconfig -r >> sysinfo.txt
23 echo "=============== config.cache ================" >> sysinfo.txt
24 cat ../config.cache ../Version >> sysinfo.txt 2> /dev/null
25 cat config.cache Version >> sysinfo.txt 2> /dev/null
27 echo "=============== configuration dir ===========" >> sysinfo.txt
28 WDIR=$HOME/gnustep/Library/WindowMaker
29 if [ -d $WDIR ]; then
30 for i in preferences menu app_options winitrc shortcuts; do
31 if [ -f $WDIR/$i ]; then
32 echo "============== $i ========" >> sysinfo.txt
33 cat $WDIR/$i >> sysinfo.txt
35 done
36 else
37 echo "No config directory found" >> sysinfo.txt
40 gzip -9 sysinfo.txt
42 echo done.