summaryrefslogtreecommitdiff
path: root/regress/simulation/test_fml_command.sh
blob: bb810d3cf5990e3fcb8f1ed3fee836774a4bf30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
#
# $FML$
#

ml_home_dir=/var/spool/ml/elena
tmp_dir=/tmp/.fml

test -d $tmp_dir || rm -fr $tmp_dir
test -d $tmp_dir || mkdir $tmp_dir

for x in $ml_home_dir/member*[a-z] \
	 $ml_home_dir/recipient*[a-z] \
	 $ml_home_dir/etc/[a-z]*[a-z]
do
   y=`basename $x`
   cp $x $tmp_dir/$y
done

echo fml $*
eval fml $*

for x in $ml_home_dir/member*[a-z] \
	 $ml_home_dir/recipient*[a-z] \
	 $ml_home_dir/etc/[a-z]*[a-z]
do
   y=`basename $x`

   if [ -f $tmp_dir/$y ];then
	diff -ub $tmp_dir/$y $x |\
	sed -e 's/^---.*//' 
   else
	echo "";
	echo "+++ $x creaetd"
	cat $x
   fi
done

exit 0