/[CCFs]/bin/acceptbuild
ViewVC logotype

Annotation of /bin/acceptbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Mon Mar 18 18:28:57 2002 UTC (22 years, 8 months ago) by ccflib
Branch: MAIN
Changes since 1.3: +2 -1 lines
*** empty log message ***

1 ccflib 1.1 #! /usr/local/bin/bash
2     #
3     # Giuseppe Vacanti, January 2000
4     #
5    
6 ccflib 1.3 #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 ccflib 1.1 . $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 ccflib 1.3 new=
43    
44 ccflib 1.1 for f in $flist ; do
45     b=`basename $f`
46 ccflib 1.3 echo Considering $b ...
47 ccflib 1.2 if [ -e $ccfdir/$b -o -e $ccfrel/$b -o -e $scisimdir/$b ] ; then
48 ccflib 1.1 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 ccflib 1.2 cp $f $ccfdeveldir || exit 1
58 ccflib 1.1 echo " accepted into $ccfdeveldir."
59 ccflib 1.3 new="$new $b"
60 ccflib 1.1 fi
61     fi
62     done
63 ccflib 1.3
64 ccflib 1.4 # notify of the change in the development track
65 ccflib 1.3 if [ ! -z "$new" ] ; then
66 ccflib 1.4 ccfnotify -t development $new
67 ccflib 1.3 fi

  ViewVC Help
Powered by ViewVC 1.1.27