diff options
author | ng0 <ng0@n0.is> | 2019-11-21 11:57:31 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-21 11:57:31 +0000 |
commit | 641a5ee4f43a109a84110d90731f18b653a1e394 (patch) | |
tree | 4315d503ed1b130cdbb455ff83a2a2f590a8298d /contrib/scripts | |
parent | b84b4448cf4fbbbfae7527edb3973e408d525da3 (diff) | |
download | gnunet-641a5ee4f43a109a84110d90731f18b653a1e394.tar.gz gnunet-641a5ee4f43a109a84110d90731f18b653a1e394.zip |
gnunet-bugreport: add check for git commit.
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-x | contrib/scripts/gnunet-bugreport | 13 |
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 | ||
255 | gitcommit_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 | |||
256 | gcrypt_check() | 266 | gcrypt_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 |