Revision 17952,
910 bytes
checked in by ghudson, 22 years ago
(diff) |
Script to prime the athtools area with rpm so that we can use it to do
the actual build. Unfortunately, that means building gmake and gcc
first, so it's slow and may require athena cell tokens.
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # $Id: makerpm.sh,v 1.1 2002-10-01 18:47:18 ghudson Exp $ |
---|
3 | |
---|
4 | # On Solaris, prime /build/athtools with rpm (which requires gcc, |
---|
5 | # which requires gmake) so that we can begin the actual release build. |
---|
6 | |
---|
7 | source=${1-/mit/source} |
---|
8 | buildroot=${2-/build} |
---|
9 | build=$buildroot/rpm-bootstrap |
---|
10 | athtools=$buildroot/athtools |
---|
11 | packages="third/gmake third/gcc third/rpm" |
---|
12 | |
---|
13 | set -e |
---|
14 | |
---|
15 | # Create the build directory if necessary. Make this conditional |
---|
16 | # because the Solaris 8 mkdir -p errors out if $build is a symlink to |
---|
17 | # another directory. |
---|
18 | if [ ! -d $build ]; then |
---|
19 | mkdir -p $build |
---|
20 | fi |
---|
21 | |
---|
22 | for package in $packages; do |
---|
23 | cd $build || exit 1 |
---|
24 | rm -rf $package |
---|
25 | mkdir -p $package |
---|
26 | cd $package || exit 1 |
---|
27 | (cd $source/$package && tar cf - .) | tar xfp - |
---|
28 | sh $source/packs/build/do.sh -s "$source" dist |
---|
29 | sh $source/packs/build/do.sh prepare |
---|
30 | sh $source/packs/build/do.sh |
---|
31 | sh $source/packs/build/do.sh -d "$athtools" install |
---|
32 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.