+option pie
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 6 Nov 2011 15:30:41 +0000 (16:30 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 6 Nov 2011 15:30:41 +0000 (16:30 +0100)
Always fallback at least to diff it somehow.

bin/diffgdbdir

index 2f2ab2d..ad10958 100755 (executable)
@@ -1,6 +1,7 @@
 #! /bin/sh
 
 x="*.log"
 #! /bin/sh
 
 x="*.log"
+x2="foobar"
 o=""
 while true;do
        if [ "$1" = "-r" ];then
 o=""
 while true;do
        if [ "$1" = "-r" ];then
@@ -19,6 +20,11 @@ while true;do
                shift
                continue
        fi
                shift
                continue
        fi
+       if [ "$1" = "pie" ];then
+               x2="*pie*"
+               shift
+               continue
+       fi
        break
 done
 
        break
 done
 
@@ -36,7 +42,7 @@ function diffitraw
                echo "MISSING: $dir1 $dir2"
                return
        fi
                echo "MISSING: $dir1 $dir2"
                return
        fi
-       diffgdb $o -x rpm-qa -x "$x" $dir1 $dir2
+       diffgdb $o -x rpm-qa -x "$x" -x "$x2" $dir1 $dir2
        diffed=true
 }
 function diffit
        diffed=true
 }
 function diffit
@@ -91,5 +97,6 @@ if [ "$1" != "${1#tests/}" -a -d $1 ];then
        diffed=true
 fi
 if ! $diffed;then
        diffed=true
 fi
 if ! $diffed;then
-       echo "NOT FOUND: $1 $2"
+       diffitraw $1 $2
+       #echo "NOT FOUND: $1 $2"
 fi
 fi