From: jkratoch <> Date: Thu, 8 Apr 2010 19:26:42 +0000 (+0000) Subject: Support tests/*/* files. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=699078c2691ad8382bc45494fb57866e70d858ac Support tests/*/* files. --- diff --git a/bin/diffgdbdir b/bin/diffgdbdir index ef1941b..636fb2c 100755 --- a/bin/diffgdbdir +++ b/bin/diffgdbdir @@ -28,10 +28,10 @@ if [ $# != 2 ];then fi diffed=false -function diffit +function diffitraw { - dir1=$1/out - dir2=$2/out + dir1=$1 + dir2=$2 if [ ! -e "$dir2" ];then echo "MISSING: $dir1 $dir2" return @@ -39,6 +39,10 @@ function diffit diffgdb $o -x "$x" $dir1 $dir2 diffed=true } +function diffit +{ + diffitraw $1/out $2/out +} if [ -f "$1" -a ! -e "${1%.tar.xz}" ];then ( @@ -78,6 +82,10 @@ if [ -d $1/out ];then diffit $1 $2 diffed=true fi +if [ "$1" != "${1#tests/}" -a -d $1 ];then + diffitraw $1 $2 + diffed=true +fi if ! $diffed;then echo "NOT FOUND: $1 $2" fi