3 |
# Giuseppe Vacanti, January 2000 |
# Giuseppe Vacanti, January 2000 |
4 |
# |
# |
5 |
|
|
6 |
|
#notify () { |
7 |
|
# if [ $# -ne 1 ] ; then |
8 |
|
# echo notify error |
9 |
|
# exit 1 |
10 |
|
# fi |
11 |
|
# ccfc=$1 |
12 |
|
# /usr/lib/sendmail -t << EOF |
13 |
|
#From: ccflib@xmm.vilspa.esa.es |
14 |
|
#To: xmm-it@xmm.vilspa.esa.es, sas-devel@xmm.vilspa.esa.es |
15 |
|
#Subject: New CCF constituent (development): $ccfc |
16 |
|
# |
17 |
|
#EOF |
18 |
|
#} |
19 |
|
|
20 |
|
|
21 |
. $HOME/bin/ccflib.cfg |
. $HOME/bin/ccflib.cfg |
22 |
|
|
23 |
PATH=$HOME/bin:$PATH |
PATH=$HOME/bin:$PATH |
39 |
|
|
40 |
saslatest |
saslatest |
41 |
|
|
42 |
|
new= |
43 |
|
|
44 |
for f in $flist ; do |
for f in $flist ; do |
45 |
b=`basename $f` |
b=`basename $f` |
46 |
echo -n Considering $b ... |
echo Considering $b ... |
47 |
if [ -e $ccfdir/$b -o -e $ccfrel/$b -o -e $scisimdir/$b ] ; then |
if [ -e $ccfdir/$b -o -e $ccfrel/$b -o -e $scisimdir/$b ] ; then |
48 |
echo " it already exists. REJECTED." |
echo " it already exists. REJECTED." |
49 |
else |
else |
56 |
else |
else |
57 |
cp $f $ccfdeveldir || exit 1 |
cp $f $ccfdeveldir || exit 1 |
58 |
echo " accepted into $ccfdeveldir." |
echo " accepted into $ccfdeveldir." |
59 |
|
new="$new $b" |
60 |
fi |
fi |
61 |
fi |
fi |
62 |
done |
done |
63 |
|
|
64 |
|
if [ ! -z "$new" ] ; then |
65 |
|
ccfnotify -d $new |
66 |
|
fi |