source: trunk/packs/build/makerpm.sh @ 17952

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
7source=${1-/mit/source}
8buildroot=${2-/build}
9build=$buildroot/rpm-bootstrap
10athtools=$buildroot/athtools
11packages="third/gmake third/gcc third/rpm"
12
13set -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.
18if [ ! -d $build ]; then
19  mkdir -p $build
20fi
21
22for 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
32done
Note: See TracBrowser for help on using the repository browser.