File: bugscript

package info (click to toggle)
dpkg-cross 2.6.7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 456 kB
  • sloc: perl: 1,114; sh: 172; makefile: 125
file content (39 lines) | stat: -rwxr-xr-x 908 bytes parent folder | download | duplicates (7)
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
#!/bin/bash
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 "$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