diff -r 000000000000 -r 044383f39525 sbsv2/raptor/bin/sbs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/bin/sbs Tue Oct 27 16:36:35 2009 +0000 @@ -0,0 +1,111 @@ +#!/bin/bash +# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# raptor script +# add mingw to the PATH if we are running Cygwin on Windows +# + +# If SBS_HOME is not set in the environment then work it out +# from the path to this batch file +if [ -z "$SBS_HOME" ] ; then + temp=$0 + SBS_HOME=$(cd ${temp%/*} && echo $PWD) + export SBS_HOME=${SBS_HOME%/bin} +fi + +# Ensure that the host type is set for Raptor: +eval $($SBS_HOME/bin/gethost.sh -e) + +if [ -z "$HOSTPLATFORM" ]; then + echo "Error: HOSTPLATFORM could not be determined." 1>&2 + exit 1 +fi + +if [ ! -d "$SBS_HOME/$HOSTPLATFORM_DIR" ]; then +cat 1>&2 <&2 + echo "Check your SBS_HOME environment variable." 1>&2 +fi