Blame | Last modification | View Log | RSS feed
#!sh -0# Copyright (C) 1998-2000 ERG Limited, All rights reserved## Module name : build.sh# Module type : Makefile system# Compiler(s) : ANSI C# Environment(s): n/a## Description:# This is the standard bootstrap for EMBEDDED builds## Usage: build [release | clobber | archive]## Version Who Date Description# 1.0 APY 11/08/99 Created EMBEDDED version## $Name: $# $Source: /export/repository/cvs/core/rtswis/build.sh,v $# $Revision: 1.1 $ $Date: 2001/08/15 07:54:59 $ $State: Exp $# $Author: mhunt $ $Locker: $#.........................................................................#BOMBOUT=FALSEif [ "x$GBE_BIN" = "x" ]; thenecho 'ERROR: please set env-var GBE_BIN (typically "/usr/bin")'BOMBOUT=TRUEfiif [ "x$GBE_PERL" = "x" ]; thenecho 'ERROR: please set env-var GBE_PERL (typically "/usr/bin")'BOMBOUT=TRUEfiif [ "x$GBE_TOOLS" = "x" ]; thenecho 'ERROR: please set env-var GBE_TOOLS (typically "/devl/tools")'BOMBOUT=TRUEfiif [ "x$GBE_CONFIG" = "x" ]; thenecho 'ERROR: please set env-var GBE_CONFIG (typically "/devl/config")'BOMBOUT=TRUEfiif [ "x$GBE_DPKG" = "x" ]; thenecho 'ERROR: please set env-var GBE_DPKG (typically "/devl/dpkg")'BOMBOUT=TRUEfiif [ "x$BOMBOUT" = "xTRUE" ]; thenexit 1fiif [ x$1 != xsetvars ]thenif [ $? != 0 ]thenexit 1;fiecho === Setting Environment Vars ===export GBE_BIN GBE_PERL GBE_TOOLS GBE_DPKGecho "GBE_BIN = $GBE_BIN"echo "GBE_PERL = $GBE_PERL"echo "GBE_TOOLS = $GBE_TOOLS"echo "GBE_DPKG = $GBE_DPKG"if [ x$1 = xclobber -o x$2 = xclobber -o x$3 = xclobber ]thenecho === Removing ======PWD=`$GBE_BIN/pwd`$GBE_PERL build.pl $PWD $GBE_TOOLS/buildlib.pl $1 $2 $3echo === Remove complete ===elseecho === Building $1 ===PWD=`$GBE_BIN/pwd`$GBE_PERL build.pl $PWD $GBE_TOOLS/buildlib.pl $1 $2 $3echo === Build $1 complete ===fifi