/[CCFs]/bin/acceptbuild
ViewVC logotype

Contents of /bin/acceptbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations)
Mon Jan 15 09:59:11 2018 UTC (6 years, 10 months ago) by ccflib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +7 -24 lines
refurbished version of acceptbuild to be in line with new versions of autobuild and getdeliveries

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

  ViewVC Help
Powered by ViewVC 1.1.27