1 |
#! /usr/local/bin/bash |
#! /bin/bash |
|
# |
|
|
# Giuseppe vacanti, January 2000 |
|
2 |
# |
# |
3 |
# + Build the latest set of CCF packages |
# + Build the latest set of CCF packages |
4 |
# |
# |
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$ |
# $Id: buildlatest,v 1.3 2013/02/14 14:26:13 ccflib Exp $ |
11 |
|
|
12 |
cleanup () { |
cleanup () { |
13 |
cd ~ |
cd ~ |
29 |
trap cleanup SIGINT |
trap cleanup SIGINT |
30 |
|
|
31 |
me=`basename $0` |
me=`basename $0` |
32 |
##echo $me running on `date` |
echo $me running on `date` |
33 |
|
|
34 |
PATH=$HOME/bin:$PATH |
PATH=$HOME/bin:$PATH |
35 |
export PATH |
export PATH |
62 |
echo -n Unpacking `basename $p` ... |
echo -n Unpacking `basename $p` ... |
63 |
tar -C packages -xzf $p || (echo FAILED, aborting ; exit 1) |
tar -C packages -xzf $p || (echo FAILED, aborting ; exit 1) |
64 |
echo " done." |
echo " done." |
65 |
|
mkdir tmplog || exit 1 |
66 |
|
tar -C tmplog -xzf $p || (echo FAILED, aborting ; exit 1) |
67 |
|
chmod -R a+w tmplog |
68 |
|
tmpdir=`ls -1 tmplog` |
69 |
|
echo "ChangeLog says:" |
70 |
|
last_version tmplog/$tmpdir/ChangeLog |
71 |
|
rm -fr tmplog |
72 |
|
|
73 |
done |
done |
74 |
|
|