aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/scripts/gnunet-bugreport13
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/scripts/gnunet-bugreport b/contrib/scripts/gnunet-bugreport
index a63b816ef..5f090a350 100755
--- a/contrib/scripts/gnunet-bugreport
+++ b/contrib/scripts/gnunet-bugreport
@@ -63,7 +63,6 @@ gcc_check()
63 if test -n "$TEST"; then 63 if test -n "$TEST"; then
64 VERS=`gcc --version 2>/dev/null | head -n 1` 64 VERS=`gcc --version 2>/dev/null | head -n 1`
65 infomsg "gcc : $VERS" 65 infomsg "gcc : $VERS"
66 # The elif will work in bourne shells, no other shells tested.
67 elif test -n "`gcc 2>&1 | tail -1 | awk '{print $1}'`"; then 66 elif test -n "`gcc 2>&1 | tail -1 | awk '{print $1}'`"; then
68 VERS=`gcc --version 2>/dev/null | head -n 1` 67 VERS=`gcc --version 2>/dev/null | head -n 1`
69 infomsg "gcc : $VERS" 68 infomsg "gcc : $VERS"
@@ -253,6 +252,17 @@ gnunet011x_check()
253 fi 252 fi
254} 253}
255 254
255gitcommit_check()
256{
257 TEST=$(git | grep -v "not found" 2> /dev/null)
258 if test -n "$TEST"; then
259 VER=$(git rev-parse HEAD)
260 infomsg "git commit : $VER"
261 else
262 warningmsg "git commit : Not a git checkout"
263 fi
264}
265
256gcrypt_check() 266gcrypt_check()
257{ 267{
258 TEST=`$WHICH libgcrypt-config | grep -v "not found" 2> /dev/null` 268 TEST=`$WHICH libgcrypt-config | grep -v "not found" 2> /dev/null`
@@ -539,6 +549,7 @@ main()
539 gnunet09x_check 549 gnunet09x_check
540 gnunet010x_check 550 gnunet010x_check
541 gnunet011x_check 551 gnunet011x_check
552 gitcommit_check
542 gcrypt_check 553 gcrypt_check
543 mysql_check 554 mysql_check
544 pkgconf_check 555 pkgconf_check