#! /bin/bash
mkdir -p /home/douillet/bin/Enfer
cd /home/douillet/bin/Enfer
moo=/home/douillet/bin
mad=/home/douillet/madras_bin
ls -1 $moo > list_moo
ls -1 $mad > list_mad
diff list_mad list_moo --suppress-common-lines | grep ">" | sed -e "s/> //" > list_moo_only
diff list_mad list_moo --suppress-common-lines | grep "<" | sed -e "s/< //" > list_mad_only
diff list_moo_only list_moo --suppress-common-lines | grep ">" | sed -e "s/> //" > list_both
for i in `cat list_both`
do msg=`diff -q ../$i ../../madras_bin/$i`
if test ! -z "$msg"
then echo $i
fi
done > list_diff
if test $1
then
rv_edit list_moo_only
rv_edit list_mad_only
rv_edit list_diff
fi