1 |
#! /usr/local/bin/bash |
2 |
# |
3 |
# Giuseppe Vacanti, January 2000 |
4 |
# |
5 |
|
6 |
. $HOME/bin/ccflib.cfg |
7 |
|
8 |
PATH=$HOME/bin:$PATH |
9 |
export PATH |
10 |
|
11 |
me=`basename $0` |
12 |
##echo $me running on `date` |
13 |
|
14 |
|
15 |
builddir=$HOME/builds/tmp |
16 |
cd $builddir || exit 1 |
17 |
|
18 |
flist=`find . -name '*.CCF'` |
19 |
|
20 |
if [ -z "$flist" ] ; then |
21 |
## echo No new CCF file found. |
22 |
exit 0 |
23 |
fi |
24 |
|
25 |
saslatest |
26 |
|
27 |
for f in $flist ; do |
28 |
b=`basename $f` |
29 |
echo -n Considering $b ... |
30 |
if [ -e $ccfdir/$b -o -e $scisimdir/$b ] ; then |
31 |
echo " it already exists. REJECTED." |
32 |
else |
33 |
if [ -e $ccfdeveldir/$b ] ; then |
34 |
echo " it already exists in the development area and it will be overwritten." |
35 |
fi |
36 |
ccfextseq --sets=$f |
37 |
if [ $? -ne 0 ] ; then |
38 |
echo " validation stage failed. REJECTED." |
39 |
else |
40 |
echo " accepted into $ccfdeveldir." |
41 |
cp $f $ccfdeveldir |
42 |
fi |
43 |
fi |
44 |
done |