summaryrefslogtreecommitdiff
path: root/contrib/report.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-05-29 00:46:26 +0000
committerChristian Grothoff <christian@grothoff.org>2009-05-29 00:46:26 +0000
commit0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9 (patch)
tree6b552f40eb089db96409a312a98d9b12bd669102 /contrib/report.sh
ng
Diffstat (limited to 'contrib/report.sh')
-rwxr-xr-xcontrib/report.sh200
1 files changed, 200 insertions, 0 deletions
diff --git a/contrib/report.sh b/contrib/report.sh
new file mode 100755
index 000000000..76abe5a7c
--- /dev/null
+++ b/contrib/report.sh
@@ -0,0 +1,200 @@
+#!/bin/sh
+
+TEST=`type type|grep not`
+if test -n "$TEST"; then
+ WHICH=which
+else
+ WHICH=type
+fi
+
+echo "On some systems, you may need to change /bin/sh to point to bash"
+echo
+echo "Please submit the following information with your bug report: "
+echo "--------------------------------------------------------------"
+OS=`uname -s 2>/dev/null`
+echo "OS : $OS"
+REL=`uname -r 2>/dev/null`
+echo "OS RELEASE : $REL"
+HW=`uname -m 2>/dev/null`
+echo "HARDWARE : $HW"
+
+TEST=`$WHICH gcc 2>/dev/null`
+if test -n "$TEST"; then
+ VERS=`gcc --version 2>/dev/null | head -n 1`
+ echo "gcc : $VERS"
+else
+ echo "gcc : Not Found";
+fi
+
+TEST=`$WHICH gmake 2>/dev/null`
+if test -n "$TEST" ; then
+ gmake --version 2>/dev/null |\
+ awk -F, '{print $1}' |\
+ awk '/GNU Make/{print "GNU gmake :",$NF}'
+else
+ TEST=`make --version 2>/dev/null`
+ if test -n "$TEST"; then
+ make --version 2>/dev/null |\
+ awk -F, '{print $1}' |\
+ awk '/GNU Make/{print "make :",$NF}'
+ else
+ echo "make : Not Found"
+ fi
+fi
+
+TEST=`$WHICH autoconf 2>/dev/null`
+if test -n "$TEST"; then
+ autoconf --version |\
+ head -n 1 |\
+ awk '{\
+ if (length($4) == 0) {\
+ print "autoconf : "$3\
+ } else {\
+ print "autoconf : "$4\
+ }}'
+else
+ echo "autoconf : Not Found"
+fi
+
+TEST=`$WHICH automake 2>/dev/null`
+if test -n "$TEST"; then
+ automake --version 2>/dev/null |\
+ head -n 1 |\
+ awk '{print "automake : "$4}'
+else
+ echo "automake : Not Found"
+fi
+
+TEST=`$WHICH libtool 2>/dev/null`
+if test -n "$TEST"; then
+ libtool --version 2>/dev/null |\
+ head -n 1 |\
+ awk '{print "libtool : "$4}'
+else
+ echo "libtool : Not Found"
+fi
+
+TEST=`$WHICH extract 2>/dev/null`
+if test -n "$TEST"; then
+ extract -v 2>/dev/null |\
+ head -n 1 |\
+ awk '{print "libextractor : "$2}'
+else
+ echo "libextractor : Not Found"
+fi
+
+TEST=`$WHICH gnunetd 2>/dev/null`
+if test -n "$TEST"; then
+ gnunetd -v | sed -e "s/v//" 2>/dev/null |\
+ awk '{print "GNUnet : "$2}'
+else
+ echo "GNUnet : Not Found"
+fi
+
+TEST=`$WHICH libgcrypt-config 2> /dev/null`
+if test -n "$TEST"; then
+ libgcrypt-config --version 2> /dev/null | \
+ awk '{print "libgcrypt : "$1}'
+else
+ echo "libgcrypt : Not Found"
+fi
+
+TEST=`$WHICH mysql_config 2> /dev/null`
+if test -n "$TEST"; then
+ mysql_config --version 2> /dev/null | \
+ awk '{print "mysql : "$1}'
+else
+ echo "mysql : Not Found"
+fi
+
+TEST=`$WHICH pkg-config 2> /dev/null`
+if test -n "$TEST"; then
+ pkg-config --version 2> /dev/null | \
+ awk '{print "pkg-config : "$1}'
+else
+ echo "pkg-config : Not Found"
+fi
+
+TEST=`$WHICH pkg-config 2> /dev/null`
+if test -n "$TEST"; then
+ pkg-config --modversion glib-2.0 2> /dev/null | \
+ awk '{print "glib2 : "$1}'
+else
+ echo "glib2 : Not Found"
+fi
+
+TEST=`$WHICH pkg-config 2> /dev/null`
+if test -n "$TEST"; then
+ pkg-config --modversion gtk+-2.0 2> /dev/null | \
+ awk '{print "gtk2+ : "$1}'
+else
+ echo "gtk2+ : Not Found"
+fi
+
+TEST=`$WHICH dpkg 2> /dev/null`
+if test -n "$TEST"; then
+ LINES=`dpkg -s libgmp3-dev | grep Version | wc -l`
+ if test "$LINES" = "1"
+ then
+ VERSION=`dpkg -s libgmp3-dev | grep Version | awk '{print $2}'`
+ echo "GMP : libgmp3-dev-$VERSION.deb"
+ else
+ echo "GMP : dpkg: libgmp3-dev not installed"
+ fi
+else
+ TEST=`$WHICH rpm 2> /dev/null`
+ if test -n "$TEST"; then
+ rpm -q gmp | sed -e "s/gmp-//" 2> /dev/null | \
+ awk '{print "GMP : "$1.rpm}'
+ else
+ echo "GMP : Test not available"
+ fi
+fi
+
+TEST=`$WHICH gettext 2> /dev/null`
+if test -n "$TEST"; then
+ gettext --version | head -n1 2> /dev/null | \
+ awk '{print "GNU gettext : "$4}'
+else
+ echo "GNU gettext : Not found"
+fi
+
+
+TEST=`$WHICH guile 2> /dev/null`
+if test -n "$TEST"; then
+ guile --version | head -n1 2> /dev/null | \
+ awk '{print "Guile : "$2}'
+else
+ echo "Guile : Not found"
+fi
+
+
+TEST=`$WHICH curl-config 2> /dev/null`
+if test -n "$TEST"; then
+ curl-config --version | head -n1 2> /dev/null | \
+ awk '{print "libcurl : "$2}'
+else
+ echo "libcurl : Not found"
+fi
+
+
+TEST=`grep "Id:" /usr/include/adns.h 2> /dev/null`
+if test -n "$TEST"; then
+ echo "$TEST" | awk '{print "GNU adns : "$4}'
+else
+ echo "GNU adns : Not found"
+fi
+
+TEST=`which qmake 2> /dev/null`
+if test -x "$TEST"; then
+ qmake --version | tail -n 1 | awk '{print "Qt : "$4}'
+else
+ echo "Qt : Not found"
+fi
+
+
+
+
+
+
+echo "--------------------------------------------------------------"