1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00
Files
wmaker/util/bughint
1998-09-29 22:36:29 +00:00

43 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
#
# Use this to gather data about your system and send me
# the sysinfo.txt file with your bugreport, plus any error
# messages you've received. This program should be run under X.
#
echo gathering information for bug tracking...
uname -a > sysinfo.txt
echo "=============== xdpyinfo ================" >> sysinfo.txt
xdpyinfo >> sysinfo.txt
echo "=============== env ================" >> sysinfo.txt
env >> sysinfo.txt
echo "=============== ldconfig ================" >> sysinfo.txt
if [ `uname` = 'Linux' ]; then
/sbin/ldconfig -p >> sysinfo.txt
else
/sbin/ldconfig -r >> sysinfo.txt
fi
echo "=============== config.cache ================" >> sysinfo.txt
cat ../config.cache ../Version >> sysinfo.txt 2> /dev/null
cat config.cache Version >> sysinfo.txt 2> /dev/null
echo "=============== configuration dir ===========" >> sysinfo.txt
WDIR=$HOME/gnustep/Library/WindowMaker
if [ -d $WDIR ]; then
for i in preferences menu app_options winitrc shortcuts; do
if [ -f $WDIR/$i ]; then
echo "============== $i ========" >> sysinfo.txt
cat $WDIR/$i >> sysinfo.txt
fi
done
else
echo "No config directory found" >> sysinfo.txt
fi
gzip -9 sysinfo.txt
echo done.