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.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 |
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 |
98 |
|
|
99 |
cd $builddir || exit 1 |
cd $builddir || exit 1 |
100 |
|
|
101 |
|
# notice that this is different of the standard builddir which is |
102 |
|
# set to $HOME/builds/tmp, so the find command will not mess up |
103 |
|
# with it |
104 |
|
|
105 |
flist=`find . -name '*.CCF'` |
flist=`find . -name '*.CCF'` |
106 |
|
|
107 |
if [ -z "$flist" ] ; then |
if [ -z "$flist" ] ; then |