#!/bin/bash
echo Running ibnetsplit
ibnetsplit -s ibdiagnet2.lst -o new -d 2
for f in ref/*; do
echo -- ------------------------------------------------------------------
t=`echo $f | sed 's/^ref/new/'`
echo diff $f $t
diff $f $t 
r=`expr $r + $?`
done
if test $r = 0; then 
   rm new/*
fi
exit $r
