1 |
#! /usr/local/bin/bash |
#! /usr/local/bin/bash |
2 |
# |
# |
3 |
# Giuseppe Vacanti, January 2000 |
# Giuseppe Vacanti, January 2000 |
4 |
|
# Eduardo Ojero Pascual, January 2011 |
5 |
# |
# |
6 |
|
# $Id: acceptbuild,v 1.5 2003/11/26 10:51:25 ccflib Exp $ |
7 |
|
|
8 |
|
#notify () { |
9 |
|
# if [ $# -ne 1 ] ; then |
10 |
|
# echo notify error |
11 |
|
# exit 1 |
12 |
|
# fi |
13 |
|
# ccfc=$1 |
14 |
|
# /usr/lib/sendmail -t << EOF |
15 |
|
#From: ccflib@xmm.esac.esa.int |
16 |
|
#To: xmm-it@xmm..esac.esa.int, sas-devel@xmm.esac.esa.int |
17 |
|
#Subject: New CCF constituent (development): $ccfc |
18 |
|
# |
19 |
|
#EOF |
20 |
|
#} |
21 |
|
|
22 |
|
|
23 |
. $HOME/bin/ccflib.cfg |
. $HOME/bin/ccflib.cfg |
24 |
|
|
41 |
|
|
42 |
saslatest |
saslatest |
43 |
|
|
44 |
|
new= |
45 |
|
|
46 |
for f in $flist ; do |
for f in $flist ; do |
47 |
b=`basename $f` |
b=`basename $f` |
48 |
echo -n Considering $b ... |
echo Considering $b ... |
49 |
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 |
50 |
echo " it already exists. REJECTED." |
echo " it already exists. REJECTED." |
51 |
else |
else |
58 |
else |
else |
59 |
cp $f $ccfdeveldir || exit 1 |
cp $f $ccfdeveldir || exit 1 |
60 |
echo " accepted into $ccfdeveldir." |
echo " accepted into $ccfdeveldir." |
61 |
|
new="$new $b" |
62 |
fi |
fi |
63 |
fi |
fi |
64 |
done |
done |
65 |
|
|
66 |
|
# notify of the change in the development track |
67 |
|
###if [ ! -z "$new" ] ; then |
68 |
|
### ccfnotify -t development $new |
69 |
|
###fi |