1 |
#! /usr/local/bin/bash |
#! /usr/local/bin/bash |
2 |
# |
# |
3 |
# $Id: buildagain,v 1.10 2005/11/11 16:37:07 ccflib Exp $ |
# $Id: buildagain,v 1.12 2005/11/11 16:58:45 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 |
|
echo -n ChangeLog says: |
71 |
|
mkdir tmplog || exit 1 |
72 |
|
tar -C tmplog -xzf $p || (echo FAILED, aborting ; exit 1) |
73 |
|
chmod -R a+w tmplog |
74 |
|
tmpdir=`ls -1 tmplog` |
75 |
|
last_version tmplog/$tmpdir/ChangeLog |
76 |
|
rm -fr tmplog |
77 |
done |
done |
78 |
|
|
79 |
# updating the dev directory for any possible change in its files |
# updating the dev directory for any possible change in its files |
91 |
for p in $plist; do |
for p in $plist; do |
92 |
echo "making package $p" |
echo "making package $p" |
93 |
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,\}$//'` |
94 |
# buildpkg $thisp && (echo ok) || (echo FAILED ; cat $builddir/build.log) |
buildpkg $thisp && (echo ok) || (echo FAILED ; cat $builddir/build.log) |
95 |
done |
done |
96 |
|
|
97 |
# Now moves resulting CCF to final destinations |
# Now moves resulting CCF to final destinations |
117 |
if [ -e $ccfdeveldir/$b ] ; then |
if [ -e $ccfdeveldir/$b ] ; then |
118 |
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." |
119 |
fi |
fi |
120 |
# ccfextseq --sets=$f |
ccfextseq --sets=$f |
121 |
if [ $? -ne 0 ] ; then |
if [ $? -ne 0 ] ; then |
122 |
echo " validation stage failed. REJECTED." |
echo " validation stage failed. REJECTED." |
123 |
else |
else |
124 |
# cp $f $ccfdeveldir || exit 1 |
cp $f $ccfdeveldir || exit 1 |
125 |
echo " accepted into $ccfdeveldir." |
echo " accepted into $ccfdeveldir." |
126 |
fi |
fi |
127 |
fi |
fi |