/[CCFs]/bin/acceptbuild
ViewVC logotype

Diff of /bin/acceptbuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ccflib, Tue Feb 19 13:57:04 2002 UTC revision 1.3 by ccflib, Mon Mar 18 17:19:21 2002 UTC
# Line 3  Line 3 
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
# Line 24  fi Line 39  fi
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
# Line 39  for f in $flist ; do Line 56  for f in $flist ; do
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  

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.27