7 |
# + 1: shell errors (cd mkdir ...) |
# + 1: shell errors (cd mkdir ...) |
8 |
# + 2: SAS set up cannot find deceit |
# + 2: SAS set up cannot find deceit |
9 |
# |
# |
10 |
# $Id: buildlatest,v 1.3 2013/02/14 14:26:13 ccflib Exp $ |
# $Id: buildlatest,v 1.4 2014/12/02 15:56:07 ccflib Exp $ |
11 |
|
|
12 |
cleanup () { |
cleanup () { |
13 |
cd ~ |
cd ~ |
21 |
(make -s -C $pkg clobber 2>&1 && make -s -C $pkg depend 2>&1 && make -s -C $pkg 2>&1) >> $builddir/build.log |
(make -s -C $pkg clobber 2>&1 && make -s -C $pkg depend 2>&1 && make -s -C $pkg 2>&1) >> $builddir/build.log |
22 |
} |
} |
23 |
|
|
24 |
|
|
25 |
. $HOME/bin/ccflib.cfg |
. $HOME/bin/ccflib.cfg |
26 |
|
|
27 |
builtdir=~/deliveries/built |
builtdir=${CCFLIB_HOME}/deliveries/built |
28 |
mkdir -p $builtdir |
mkdir -p $builtdir |
29 |
|
|
30 |
trap cleanup SIGINT |
trap cleanup SIGINT |
32 |
me=`basename $0` |
me=`basename $0` |
33 |
echo $me running on `date` |
echo $me running on `date` |
34 |
|
|
35 |
PATH=$HOME/bin:$PATH |
export PATH=${CCFLIB_HOME}/bin:$PATH |
|
export PATH |
|
|
|
|
36 |
|
|
37 |
plist=`findlatest` |
plist=`findlatest` |
38 |
|
|
45 |
deceit -v 2>&1 || (echo ERROR: deceit missing; exit 2) |
deceit -v 2>&1 || (echo ERROR: deceit missing; exit 2) |
46 |
ccfextseq -v 2>&1 || (echo ERROR: ccfextseq missing; exit 2) |
ccfextseq -v 2>&1 || (echo ERROR: ccfextseq missing; exit 2) |
47 |
|
|
48 |
builddir=$HOME/builds/tmp |
builddir=${CCFLIB_HOME}/builds/tmp |
49 |
mv $builddir ${builddir}.old |
mv $builddir ${builddir}.old |
50 |
rm -fr ${builddir}.old & |
rm -fr ${builddir}.old & |
51 |
mkdir -p $builddir |
mkdir -p $builddir |
72 |
done |
done |
73 |
|
|
74 |
|
|
75 |
CCFDEV=$HOME/ccfdev |
export CCFDEV=${CCFLIB_HOME}/ccfdev |
76 |
cd $CCFDEV |
cd $CCFDEV |
77 |
cvs update 2> /dev/null |
cvs update 2> /dev/null |
78 |
cd ~- |
cd ~- |
|
export CCFDEV |
|
79 |
. $CCFDEV/setup.sh |
. $CCFDEV/setup.sh |
80 |
|
|
81 |
cd packages |
cd packages |