File: bugscript

package info (click to toggle)
dpkg-cross 2.3.0.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 472 kB
  • ctags: 58
  • sloc: perl: 1,933; sh: 181; makefile: 28
file content (63 lines) | stat: -rwxr-xr-x 1,419 bytes parent folder | download
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
#!/bin/sh
set -e

if [ -z "$YESNO" ]; then
	YESNO=$"yYnN"
fi

cat <<EOF
I can automatically include various information about your cross building
configuration and debug output in your bug report. This information may help
to diagnose your problem.

EOF

if [ -f /tmp/dpkg-cross2.log ];then
yesno "May I include your dpkg-cross debug logs ? [Y/n] " yep
	if [ "$REPLY" = "yep" ]; then
		echo >&3
		echo "-- dpkg-cross2.log --" >&3
		echo >&3
		cat /tmp/dpkg-cross2.log >&3 2>&1
	else
		echo >&3
		echo "-- (no dpkg-cross2 logfile present) --" >&3
		echo >&3
	fi
	if [ -f /tmp/gccross2.log ]; then
		echo >&3
		echo "-- gccross2.log --" >&3
		echo >&3
		cat /tmp/gccross2.log >&3 2>&1
	else
		echo >&3
		echo "-- (no gccross2 logfile present) --" >&3
		echo >&3
	fi
fi

if [ -f "$HOME/.dpkg-cross/cross-compile" ]; then
	yesno "May I include $HOME/.dpkg-cross/cross-compile ? [Y/n] " yep
	if [ "$REPLY" = "yep" ]; then
		echo >&3
		echo "-- $HOME/.dpkg-cross/cross-compile --" >&3
		echo >&3
		cat $config >&3
	else
		echo >&3
		echo "-- ( $HOME/.dpkg-cross/cross-compile present, but not submitted) --" >&3
		echo >&3
	fi
fi

yesno "May I include /etc/dpkg-cross/cross-compile ? [Y/n] " yep
if [ "$REPLY" = "yep" ]; then
	echo >&3
	echo "-- /etc/dpkg-cross/cross-compile --" >&3
	echo >&3
	cat /etc/dpkg-cross/cross-compile >&3
else
	echo >&3
	echo "-- (/etc/dpkg-cross/cross-compile not submitted) --" >&3
	echo >&3
fi