releasing 0.7.6
[platform/upstream/gstreamer.git] / tools / gst-feedback-m.m
1 #!/bin/sh
2 # this script provides feedback for GStreamer debugging
3 # the user can run this and provide the GStreamer developers with information
4 # about their system
5
6 command_output ()
7 {
8   echo "+++ $1"
9   $1
10 }
11
12 echo "GStreamer feedback script."
13 echo "Please attach the output of this script to your bug reports."
14 echo "Bug reports should go into Gnome's bugzilla (http://bugzilla.gnome.org)"
15 echo
16
17 echo "+   SYSTEM INFORMATION"
18 command_output "uname -a"
19
20 if test -f /etc/redhat-release; then
21   echo "+++  distribution: Red Hat"
22   cat /etc/redhat-release
23 fi
24
25 if test -f /etc/debian_version; then
26   echo "+++  distribution: Debian"
27   cat /etc/debian_version
28 fi
29
30 command_output "cat /etc/issue"
31
32 echo
33
34 echo "+   USER INFORMATION"
35 command_output "id"
36 echo
37
38 echo "+   PKG-CONFIG INFORMATION"
39 command_output "pkg-config --version"
40 command_output "pkg-config gstreamer --modversion"
41 command_output "pkg-config gstreamer --cflags"
42 command_output "pkg-config gstreamer --libs"
43 command_output "pkg-config gstreamer-libs --modversion"
44 command_output "pkg-config gstreamer-libs --cflags"
45 command_output "pkg-config gstreamer-libs --libs"
46 echo
47
48 echo "+   GSTREAMER INFORMATION"
49 command_output "which gst-register"
50 command_output "gst-inspect"
51 command_output "gst-inspect fakesrc"
52 command_output "gst-inspect fakesink"
53 command_output "gst-launch fakesrc num_buffers=5 ! fakesink"
54
55 echo "++  looking for gstreamer libraries in common locations"
56 for dirs in /usr/lib /usr/local/lib /home; do
57   if test -d $dirs; then
58     find $dirs -name libgstreamer* | grep so
59   fi
60 done
61 echo "++  looking for gstreamer headers in common locations"
62 for dirs in /usr/include /usr/local/include /home; do
63   if test -d $dirs; then
64     find $dirs -name gst.h
65   fi
66 done
67
68 echo "+   GSTREAMER PLUG-INS INFORMATION"
69 command_output "gst-inspect volume"
70
71 echo "++  looking for gstreamer volume plugin in common locations"
72 for dirs in /usr/lib /usr/local/lib /home; do
73   if test -d $dirs; then
74     find $dirs -name libgstvolume* | grep so
75   fi
76 done
77 echo "++  looking for gstreamer headers in common locations"
78 for dirs in /usr/include /usr/local/include /home; do
79   if test -d $dirs; then
80     find $dirs -name audio.h
81   fi
82 done
83
84