1 |
#! /usr/local/bin/bash |
#! /usr/local/bin/bash |
2 |
# |
# |
3 |
# $Id: buildagain,v 1.9 2005/11/11 16:07:24 ccflib Exp $ |
# $Id: buildagain,v 1.10 2005/11/11 16:37:07 ccflib Exp $ |
4 |
# |
# |
5 |
# + Build again a specific set of CCF packages |
# + Build again a specific set of CCF packages |
6 |
# + Moves the resulting CCF to final destination |
# + Moves the resulting CCF to final destination |
65 |
|
|
66 |
for p in $plist; do |
for p in $plist; do |
67 |
echo -n Unpacking `basename $p` ... |
echo -n Unpacking `basename $p` ... |
68 |
tar -C packages -xzf $p || (echo FAILED, aborting ; exit 1) |
# tar -C packages -xzf $p || (echo FAILED, aborting ; exit 1) |
69 |
echo " done." |
echo " done." |
70 |
done |
done |
71 |
|
|
84 |
for p in $plist; do |
for p in $plist; do |
85 |
echo "making package $p" |
echo "making package $p" |
86 |
thisp=`basename $p '.tgz' | sed -e 's/-[0-9]\{1,\}\.[0-9]\{1,\}$//'` |
thisp=`basename $p '.tgz' | sed -e 's/-[0-9]\{1,\}\.[0-9]\{1,\}$//'` |
87 |
buildpkg $thisp && (echo ok) || (echo FAILED ; cat $builddir/build.log) |
# buildpkg $thisp && (echo ok) || (echo FAILED ; cat $builddir/build.log) |
88 |
done |
done |
89 |
|
|
90 |
# Now moves resulting CCF to final destinations |
# Now moves resulting CCF to final destinations |
91 |
|
|
92 |
cd $builddir || exit 1 |
cd $builddir || exit 1 |
93 |
|
|
94 |
|
# notice that this is different of the standard builddir which is |
95 |
|
# set to $HOME/builds/tmp, so the find command will not mess up |
96 |
|
# with it |
97 |
|
|
98 |
flist=`find . -name '*.CCF'` |
flist=`find . -name '*.CCF'` |
99 |
|
|
100 |
if [ -z "$flist" ] ; then |
if [ -z "$flist" ] ; then |
110 |
if [ -e $ccfdeveldir/$b ] ; then |
if [ -e $ccfdeveldir/$b ] ; then |
111 |
echo " it already exists in the development area and it will be overwritten." |
echo " it already exists in the development area and it will be overwritten." |
112 |
fi |
fi |
113 |
ccfextseq --sets=$f |
# ccfextseq --sets=$f |
114 |
if [ $? -ne 0 ] ; then |
if [ $? -ne 0 ] ; then |
115 |
echo " validation stage failed. REJECTED." |
echo " validation stage failed. REJECTED." |
116 |
else |
else |
117 |
cp $f $ccfdeveldir || exit 1 |
# cp $f $ccfdeveldir || exit 1 |
118 |
echo " accepted into $ccfdeveldir." |
echo " accepted into $ccfdeveldir." |
119 |
fi |
fi |
120 |
fi |
fi |