X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Fgdbunpack;h=ea60ac26010870e5deb01277285bbb6f765647b7;hp=fa94885c0542e3fc99881d4c8ffeaf4b5894109a;hb=ab1c09bce5c096fa34f684f9ac1ebd918e3f974b;hpb=9edd3daa8905660fb84662cb87c08dfc94f7b334 diff --git a/bin/gdbunpack b/bin/gdbunpack index fa94885..ea60ac2 100755 --- a/bin/gdbunpack +++ b/bin/gdbunpack @@ -18,6 +18,12 @@ if [ -z "$args" ];then fi for log in $args;do base="${log%.log}" + if [ "$base" = "$log" ];then + base="${log%/log}" + if [ "$base" != "$log" ];then + base="$base/out" + fi + fi if [ "$base" = "$log" -o "$log" != "${log%/gdb.log}" -o "$log" = "gdb.log" ];then echo >&2 "file has no .log suffix or is gdb.log: $log" continue