git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run also `package-cleanup --cleandupes'.
[nethome.git]
/
bin
/
diffgdbdir
diff --git
a/bin/diffgdbdir
b/bin/diffgdbdir
index
d29fa10
..
636fb2c
100755
(executable)
--- a/
bin/diffgdbdir
+++ b/
bin/diffgdbdir
@@
-2,15
+2,25
@@
x="*.log"
o=""
x="*.log"
o=""
-if [ "$1" = "-r" ];then
- o="-r"
- shift
-fi
-if [ "$1" = "log" ];then
- x="*.sum"
- o="-r"
- shift
-fi
+while true;do
+ if [ "$1" = "-r" ];then
+ o="$o -r"
+ shift
+ continue
+ fi
+ if [ "$1" = "-N" ];then
+ o="$o -N"
+ shift
+ continue
+ fi
+ if [ "$1" = "log" ];then
+ x="*.sum"
+ o="-r"
+ shift
+ continue
+ fi
+ break
+done
if [ $# != 2 ];then
echo >&2 "$0 hammock/xxxxyyzzname hammock/XXXXYYZZothername"
if [ $# != 2 ];then
echo >&2 "$0 hammock/xxxxyyzzname hammock/XXXXYYZZothername"
@@
-18,10
+28,10
@@
if [ $# != 2 ];then
fi
diffed=false
fi
diffed=false
-function diffit
+function diffit
raw
{
{
- dir1=$1
/out
- dir2=$2
/out
+ dir1=$1
+ dir2=$2
if [ ! -e "$dir2" ];then
echo "MISSING: $dir1 $dir2"
return
if [ ! -e "$dir2" ];then
echo "MISSING: $dir1 $dir2"
return
@@
-29,6
+39,10
@@
function diffit
diffgdb $o -x "$x" $dir1 $dir2
diffed=true
}
diffgdb $o -x "$x" $dir1 $dir2
diffed=true
}
+function diffit
+{
+ diffitraw $1/out $2/out
+}
if [ -f "$1" -a ! -e "${1%.tar.xz}" ];then
(
if [ -f "$1" -a ! -e "${1%.tar.xz}" ];then
(
@@
-68,6
+82,10
@@
if [ -d $1/out ];then
diffit $1 $2
diffed=true
fi
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
if ! $diffed;then
echo "NOT FOUND: $1 $2"
fi