blob: 3dbd60fc6c7c7586d3facae4cbf61262043e053a [file] [log] [blame]
bbahnsenb9e16a82006-04-24 16:38:10 +00001#
2# Copyright (c) 2006, Intel Corporation
3# All rights reserved. This program and the accompanying materials
4# are licensed and made available under the terms and conditions of the BSD License
5# which accompanies this distribution. The full text of the license may be found at
6# http://opensource.org/licenses/bsd-license.php
7#
8# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10
11# Setup the environment for unix-like systems running a bash-like shell.
12# This file must be "sourced" not executed. For example: ". edksetup.sh"
13
14if [ "$WORKSPACE" == "" ]
15then
16 echo "Please set WORKSPACE before sourcing this script."
17else
18if [ "$JAVA_HOME" == "" ]
19then
20 echo "Please set JAVA_HOME before sourcing this script."
21else
bbahnsen0fff0c22006-05-24 22:03:09 +000022if [ "$ANT_HOME" == "" ]
23then
24 echo "Please set ANT_HOME before sourcing this script."
25else
bbahnsenb9e16a82006-04-24 16:38:10 +000026
27# These should be ok as they are.
bbahnsen7a05c962006-06-06 23:41:12 +000028export CLASSPATH=$WORKSPACE/Tools/Jars/SurfaceArea.jar:$WORKSPACE/Tools/Jars/frameworktasks.jar:$WORKSPACE/Tools/Jars/cpptasks.jar:$WORKSPACE/Tools/Jars/GenBuild.jar:$XMLBEANS_HOME/lib/resolver.jar:$XMLBEANS_HOME/lib/xbean.jar:$XMLBEANS_HOME/lib/xmlpublic.jar:$XMLBEANS_HOME/lib/jsr173_1.0_api.jar:$XMLBEANS_HOME/lib/saxon8.jar:$XMLBEANS_HOME/lib/xbean_xpath.jar
bbahnsenbf0c93f2006-06-20 22:12:27 +000029export CLASSPATH=$CLASSPATH:$WORKSPACE/Tools/Jars/Common.jar
bbahnsenf79b5952006-06-12 17:15:58 +000030export FRAMEWORK_TOOLS_PATH=$WORKSPACE/Tools/bin
31export PATH=$FRAMEWORK_TOOLS_PATH:$ANT_HOME/bin:$JAVA_HOME/bin:$PATH
bbahnsenb9e16a82006-04-24 16:38:10 +000032
33# Handle any particulars down here.
34case "`uname`" in
35 CYGWIN*)
36 # Convert paths to windows format.
37 export WORKSPACE=`cygpath -w $WORKSPACE`
38 export CLASSPATH=`cygpath -w -p $CLASSPATH`
39 ;;
40esac
41
42# Now we need to build the tools.
bbahnsen4182ff42006-06-06 23:06:37 +000043(cd Tools; ant -noclasspath)
bbahnsenb9e16a82006-04-24 16:38:10 +000044fi
45fi
bbahnsen0fff0c22006-05-24 22:03:09 +000046fi