| 724 |
buildadm |
1 |
#!sh -0
|
|
|
2 |
# Copyright (C) 1998-2000 ERG Limited, All rights reserved
|
|
|
3 |
#
|
|
|
4 |
# Module name : build.sh
|
|
|
5 |
# Module type : Makefile system
|
|
|
6 |
# Compiler(s) : ANSI C
|
|
|
7 |
# Environment(s): n/a
|
|
|
8 |
#
|
|
|
9 |
# Description:
|
|
|
10 |
# This is the standard bootstrap for EMBEDDED builds
|
|
|
11 |
#
|
|
|
12 |
# Usage: build [release | clobber | archive]
|
|
|
13 |
#
|
|
|
14 |
# Version Who Date Description
|
|
|
15 |
# 1.0 APY 11/08/99 Created EMBEDDED version
|
|
|
16 |
#
|
|
|
17 |
# $Name: $
|
|
|
18 |
# $Source: /export/repository/cvs/core/rtswis/build.sh,v $
|
|
|
19 |
# $Revision: 1.1 $ $Date: 2001/08/15 07:54:59 $ $State: Exp $
|
|
|
20 |
# $Author: mhunt $ $Locker: $
|
|
|
21 |
#.........................................................................#
|
|
|
22 |
BOMBOUT=FALSE
|
|
|
23 |
if [ "x$GBE_BIN" = "x" ]; then
|
|
|
24 |
echo 'ERROR: please set env-var GBE_BIN (typically "/usr/bin")'
|
|
|
25 |
BOMBOUT=TRUE
|
|
|
26 |
fi
|
|
|
27 |
if [ "x$GBE_PERL" = "x" ]; then
|
|
|
28 |
echo 'ERROR: please set env-var GBE_PERL (typically "/usr/bin")'
|
|
|
29 |
BOMBOUT=TRUE
|
|
|
30 |
fi
|
|
|
31 |
if [ "x$GBE_TOOLS" = "x" ]; then
|
|
|
32 |
echo 'ERROR: please set env-var GBE_TOOLS (typically "/devl/tools")'
|
|
|
33 |
BOMBOUT=TRUE
|
|
|
34 |
fi
|
|
|
35 |
if [ "x$GBE_CONFIG" = "x" ]; then
|
|
|
36 |
echo 'ERROR: please set env-var GBE_CONFIG (typically "/devl/config")'
|
|
|
37 |
BOMBOUT=TRUE
|
|
|
38 |
fi
|
|
|
39 |
if [ "x$GBE_DPKG" = "x" ]; then
|
|
|
40 |
echo 'ERROR: please set env-var GBE_DPKG (typically "/devl/dpkg")'
|
|
|
41 |
BOMBOUT=TRUE
|
|
|
42 |
fi
|
|
|
43 |
if [ "x$BOMBOUT" = "xTRUE" ]; then
|
|
|
44 |
exit 1
|
|
|
45 |
fi
|
|
|
46 |
|
|
|
47 |
if [ x$1 != xsetvars ]
|
|
|
48 |
then
|
|
|
49 |
if [ $? != 0 ]
|
|
|
50 |
then
|
|
|
51 |
exit 1;
|
|
|
52 |
fi
|
|
|
53 |
|
|
|
54 |
echo === Setting Environment Vars ===
|
|
|
55 |
|
|
|
56 |
export GBE_BIN GBE_PERL GBE_TOOLS GBE_DPKG
|
|
|
57 |
echo "GBE_BIN = $GBE_BIN"
|
|
|
58 |
echo "GBE_PERL = $GBE_PERL"
|
|
|
59 |
echo "GBE_TOOLS = $GBE_TOOLS"
|
|
|
60 |
echo "GBE_DPKG = $GBE_DPKG"
|
|
|
61 |
|
|
|
62 |
if [ x$1 = xclobber -o x$2 = xclobber -o x$3 = xclobber ]
|
|
|
63 |
then
|
|
|
64 |
echo === Removing ======
|
|
|
65 |
PWD=`$GBE_BIN/pwd`
|
|
|
66 |
$GBE_PERL build.pl $PWD $GBE_TOOLS/buildlib.pl $1 $2 $3
|
|
|
67 |
echo === Remove complete ===
|
|
|
68 |
else
|
|
|
69 |
echo === Building $1 ===
|
|
|
70 |
PWD=`$GBE_BIN/pwd`
|
|
|
71 |
$GBE_PERL build.pl $PWD $GBE_TOOLS/buildlib.pl $1 $2 $3
|
|
|
72 |
echo === Build $1 complete ===
|
|
|
73 |
fi
|
|
|
74 |
fi
|
|
|
75 |
|