1 |
#! /usr/local/bin/bash |
#! /usr/local/bin/bash |
2 |
# |
# |
3 |
# $Id: buildagain,v 1.2 2005/11/11 15:32:57 ccflib Exp $ |
# $Id: buildagain,v 1.4 2005/11/11 15:39:12 ccflib Exp $ |
4 |
# |
# |
5 |
# + Build again a specific set of CCF packages |
# + Build again a specific set of CCF packages |
6 |
# |
# |
9 |
# + 1: shell errors (cd mkdir ...) |
# + 1: shell errors (cd mkdir ...) |
10 |
# + 2: SAS set up cannot find deceit |
# + 2: SAS set up cannot find deceit |
11 |
|
|
12 |
if [ -z "$1" ] ; then |
if [ -z $1 ] ; then |
13 |
echo "Abort: No package to process defined" |
echo "Abort: No package to process defined" |
14 |
exit |
exit -1 |
15 |
fi |
fi |
16 |
|
|
17 |
pkg=$1 |
pkg=$1 |
83 |
for p in $plist; do |
for p in $plist; do |
84 |
echo "making package $p" |
echo "making package $p" |
85 |
# 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,\}$//'` |
86 |
# buildpkg $thisp && (echo ok; mv $p $builtdir) || (echo FAILED ; cat $builddir/build.log) |
# buildpkg $thisp && (echo ok) || (echo FAILED ; cat $builddir/build.log) |
87 |
done |
done |