diff options
-rwxr-xr-x | contrib/scripts/gnunet-bugreport | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/contrib/scripts/gnunet-bugreport b/contrib/scripts/gnunet-bugreport index 6759c21c0..21808273a 100755 --- a/contrib/scripts/gnunet-bugreport +++ b/contrib/scripts/gnunet-bugreport | |||
@@ -61,7 +61,7 @@ os_check() | |||
61 | # awk isn't there it can't be found. | 61 | # awk isn't there it can't be found. |
62 | awk_check() | 62 | awk_check() |
63 | { | 63 | { |
64 | if test -z "`type awk 2>&1 | awk '/not found/'`"; then | 64 | if test -z "`type awk | awk '/not found/'`"; then |
65 | infomsg "awk : Found" | 65 | infomsg "awk : Found" |
66 | else | 66 | else |
67 | warningmsg "awk : Not found!" | 67 | warningmsg "awk : Not found!" |
@@ -403,7 +403,7 @@ libunistring_check() | |||
403 | 403 | ||
404 | gnugettext_check() | 404 | gnugettext_check() |
405 | { | 405 | { |
406 | TEST=`type gettext | awk '/not found/' 2> /dev/null` | 406 | TEST=`type gettext | awk '/not found/'` |
407 | if test -z "$TEST"; then | 407 | if test -z "$TEST"; then |
408 | if test -n "$(gettext --version 2>&1 | awk '/unknown option/')"; then | 408 | if test -n "$(gettext --version 2>&1 | awk '/unknown option/')"; then |
409 | infomsg "GNU gettext : Not found" | 409 | infomsg "GNU gettext : Not found" |
@@ -416,7 +416,7 @@ gnugettext_check() | |||
416 | 416 | ||
417 | gettext_check() | 417 | gettext_check() |
418 | { | 418 | { |
419 | if test -n "`type getext 2>/dev/null`"; then | 419 | if test -z "`type getext | awk '/not found/'`"; then |
420 | infomsg "gettext : Found" | 420 | infomsg "gettext : Found" |
421 | else | 421 | else |
422 | infomsg "gettext : Not Found" | 422 | infomsg "gettext : Not Found" |
@@ -448,7 +448,6 @@ gnurl_curl_check() | |||
448 | 448 | ||
449 | libmicrohttpd_check() | 449 | libmicrohttpd_check() |
450 | { | 450 | { |
451 | # TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX` | ||
452 | TMPFILE="bugreport-test_lmhd.c" | 451 | TMPFILE="bugreport-test_lmhd.c" |
453 | cat - >$TMPFILE <<EOF | 452 | cat - >$TMPFILE <<EOF |
454 | #include <microhttpd.h> | 453 | #include <microhttpd.h> |
@@ -474,7 +473,6 @@ EOF | |||
474 | 473 | ||
475 | glpk_check() | 474 | glpk_check() |
476 | { | 475 | { |
477 | # TMPFILE=`mktemp /tmp/glpk-version-testXXXXXX` | ||
478 | TMPFILE="bugreport-glpk_check.c" | 476 | TMPFILE="bugreport-glpk_check.c" |
479 | cat - >$TMPFILE <<EOF | 477 | cat - >$TMPFILE <<EOF |
480 | #include <glpk.h> | 478 | #include <glpk.h> |
@@ -500,7 +498,6 @@ EOF | |||
500 | 498 | ||
501 | gnutls_check() | 499 | gnutls_check() |
502 | { | 500 | { |
503 | # TMPFILE=`mktemp /tmp/gnutls-version-testXXXXXX` | ||
504 | TMPFILE="bugreport-gnutls_check.c" | 501 | TMPFILE="bugreport-gnutls_check.c" |
505 | cat - >$TMPFILE <<EOF | 502 | cat - >$TMPFILE <<EOF |
506 | #include <gnutls/gnutls.h> | 503 | #include <gnutls/gnutls.h> |
@@ -532,8 +529,6 @@ main() | |||
532 | echo "CPPFLAGS='-I/usr/pkg/include' LDFLAGS='-L/usr/pkg/lib' ${progname}" | 529 | echo "CPPFLAGS='-I/usr/pkg/include' LDFLAGS='-L/usr/pkg/lib' ${progname}" |
533 | return 0 | 530 | return 0 |
534 | fi | 531 | fi |
535 | #echo $LDFLAGS | ||
536 | #echo $CPPFLAGS | ||
537 | infomsg "${progname} 0.11.0" | 532 | infomsg "${progname} 0.11.0" |
538 | infomsg | 533 | infomsg |
539 | infomsg "Please submit the following" | 534 | infomsg "Please submit the following" |