/[CCFs]/bin/acceptbuild
ViewVC logotype

Annotation of /bin/acceptbuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide 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 ccflib 1.7 #! /bin/bash
2 ccflib 1.1 #
3 ccflib 1.9 # $Id: acceptbuild,v 1.8 2014/12/12 10:33:27 ccflib Exp $
4 ccflib 1.3
5 ccflib 1.9 me=`basename $0`
6 ccflib 1.3
7 ccflib 1.9 echo "-> $me running on "`date`
8     echo
9    
10 ccflib 1.1 . $HOME/bin/ccflib.cfg
11    
12 ccflib 1.8 export PATH=${CCFLIB_HOME}/bin:$PATH
13 ccflib 1.1
14 ccflib 1.8 builddir=${CCFLIB_HOME}/builds/tmp
15 ccflib 1.1 cd $builddir || exit 1
16    
17     flist=`find . -name '*.CCF'`
18    
19     if [ -z "$flist" ] ; then
20 ccflib 1.9 echo No new CCF file found.
21     echo
22 ccflib 1.1 exit 0
23     fi
24    
25     saslatest
26    
27 ccflib 1.3 new=
28    
29 ccflib 1.1 for f in $flist ; do
30     b=`basename $f`
31 ccflib 1.3 echo Considering $b ...
32 ccflib 1.2 if [ -e $ccfdir/$b -o -e $ccfrel/$b -o -e $scisimdir/$b ] ; then
33 ccflib 1.1 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 ccflib 1.2 cp $f $ccfdeveldir || exit 1
43 ccflib 1.1 echo " accepted into $ccfdeveldir."
44 ccflib 1.3 new="$new $b"
45 ccflib 1.1 fi
46     fi
47     done
48 ccflib 1.3

  ViewVC Help
Powered by ViewVC 1.1.27