2 # This file is in the public domain
6 OPLIST=`sh listallopts.sh`
14 if [ ! -f $1/_.mtree ] ; then
17 if [ ! -f $2/_.mtree ] ; then
21 mtree -k uid,gid,mode,nlink,size,link,type,flags \
22 -f ${1}/_.mtree -f $2/_.mtree > $2/_.mtree.all.txt || true
23 grep '^ ' $2/_.mtree.all.txt > $4/$3.mtree.chg.txt || true
24 grep '^[^ ]' $2/_.mtree.all.txt > $4/$3.mtree.sub.txt || true
25 grep '^ [^ ]' $2/_.mtree.all.txt > $4/$3.mtree.add.txt || true
26 a=`wc -l < $4/$3.mtree.add.txt`
27 s=`wc -l < $4/$3.mtree.sub.txt`
28 c=`wc -l < $4/$3.mtree.chg.txt`
29 c=`expr $c / 2 || true`
31 br=`awk 'NR == 2 {print $3}' $1/_.df`
32 bt=`awk 'NR == 2 {print $3}' $2/_.df`
33 echo $3 A $a S $s C $c B $bt D `expr $br - $bt`
38 md=`echo "${o}=foo" | md5`
43 if [ ! -d $m/iw -a ! -d $m/bw -a ! -d $m/w ] ; then
46 echo "=== reduce ${o}"
49 echo -------------------------------------------------------------
52 echo -------------------------------------------------------------
53 if [ ! -f $m/iw/done ] ; then
55 elif [ ! -f $m/iw/_.success ] ; then
58 if [ ! -f $m/bw/done ] ; then
60 elif [ ! -f $m/bw/_.success ] ; then
63 if [ ! -f $m/w/done ] ; then
65 elif [ ! -f $m/w/_.success ] ; then
71 compa ${RDIR}/Ref/ $m/$x r-$x $m