nsbin/gentoo-bug.sh01
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

57 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
# generate gentoo bug-report
# Nico Schottelius <nico-linux-gentoo ... schottelius.org
# gentoo-bug.sh
REPORTER="Nico Schottelius <nico-linux-gentoo ... schottelius.org>"
umask 077
TMP=/tmp/`basename $0`-${USER}-$$
# read input
reread()
{
_tmp=""
name="$1"
while [ ! "$_tmp" ]; do
read -p "$1 [$_tmp]: " _tmp
done
echo $_tmp
}
echo "This makes a small bugreport suitable for developers of the gentoo system."
echo "----------------"
echo "Please enter information as exact as possible. Thanks."
echo ""
package=`reread package-name`
error=`reread "Error occured (short description)"`
problem=`reread "Please describe problem in your words"`
# generate file
#cat << EOF
cat << EOF > "$TMP"
--------------------
package: $package
--------------------
reporter: $REPORTER
--------------------
error: $error
--------------------
problem-description: $problem
--------------------
uname-a: `uname -a`
--------------------
make.conf: `grep -v '^#' /etc/make.conf | grep -v '^$'`
--------------------
emerge-info: `emerge --info`
--------------------
other-info:
EOF
echo "If you have additional information, please add them to the report."
echo "Now, please mail the resulting file to a gentoo-maintainer/developer:"
echo "$TMP"