bbahnsen | b9e16a8 | 2006-04-24 16:38:10 +0000 | [diff] [blame] | 1 | # |
| 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 | |
| 14 | if [ "$WORKSPACE" == "" ] |
| 15 | then |
| 16 | echo "Please set WORKSPACE before sourcing this script." |
| 17 | else |
| 18 | if [ "$JAVA_HOME" == "" ] |
| 19 | then |
| 20 | echo "Please set JAVA_HOME before sourcing this script." |
| 21 | else |
bbahnsen | 0fff0c2 | 2006-05-24 22:03:09 +0000 | [diff] [blame^] | 22 | if [ "$ANT_HOME" == "" ] |
| 23 | then |
| 24 | echo "Please set ANT_HOME before sourcing this script." |
| 25 | else |
bbahnsen | b9e16a8 | 2006-04-24 16:38:10 +0000 | [diff] [blame] | 26 | |
| 27 | # These should be ok as they are. |
bbahnsen | b9e16a8 | 2006-04-24 16:38:10 +0000 | [diff] [blame] | 28 | export CLASSPATH=$WORKSPACE/Tools/Jars/SurfaceArea.jar:$WORKSPACE/Tools/Jars/frameworktasks.jar:$WORKSPACE/Tools/Jars/saxon8.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 |
| 29 | export Framework_Tools_Path=$WORKSPACE/Tools/bin |
| 30 | export PATH=$Framework_Tools_Path:$ANT_HOME/bin:$JAVA_HOME/bin:$PATH |
| 31 | |
| 32 | # Handle any particulars down here. |
| 33 | case "`uname`" in |
| 34 | CYGWIN*) |
| 35 | # Convert paths to windows format. |
| 36 | export WORKSPACE=`cygpath -w $WORKSPACE` |
| 37 | export CLASSPATH=`cygpath -w -p $CLASSPATH` |
| 38 | ;; |
| 39 | esac |
| 40 | |
| 41 | # Now we need to build the tools. |
| 42 | echo "If you have not done so, please build the tools by issuing 'ant -f \$WORKSPACE/Tools/build.xml'." |
| 43 | fi |
| 44 | fi |
bbahnsen | 0fff0c2 | 2006-05-24 22:03:09 +0000 | [diff] [blame^] | 45 | fi |