/[CCFs]/bin/acceptbuild
ViewVC logotype

Contents of /bin/acceptbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Mon Mar 18 17:19:21 2002 UTC (22 years, 8 months ago) by ccflib
Branch: MAIN
Changes since 1.2: +23 -2 lines
*** empty log message ***

1 #! /usr/local/bin/bash
2 #
3 # 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
22
23 PATH=$HOME/bin:$PATH
24 export PATH
25
26 me=`basename $0`
27 ##echo $me running on `date`
28
29
30 builddir=$HOME/builds/tmp
31 cd $builddir || exit 1
32
33 flist=`find . -name '*.CCF'`
34
35 if [ -z "$flist" ] ; then
36 ## echo No new CCF file found.
37 exit 0
38 fi
39
40 saslatest
41
42 new=
43
44 for f in $flist ; do
45 b=`basename $f`
46 echo Considering $b ...
47 if [ -e $ccfdir/$b -o -e $ccfrel/$b -o -e $scisimdir/$b ] ; then
48 echo " it already exists. REJECTED."
49 else
50 if [ -e $ccfdeveldir/$b ] ; then
51 echo " it already exists in the development area and it will be overwritten."
52 fi
53 ccfextseq --sets=$f
54 if [ $? -ne 0 ] ; then
55 echo " validation stage failed. REJECTED."
56 else
57 cp $f $ccfdeveldir || exit 1
58 echo " accepted into $ccfdeveldir."
59 new="$new $b"
60 fi
61 fi
62 done
63
64 if [ ! -z "$new" ] ; then
65 ccfnotify -d $new
66 fi

  ViewVC Help
Powered by ViewVC 1.1.27