]>
Commit | Line | Data |
---|---|---|
1 | #\r | |
2 | # Copyright (c) 2006, Intel Corporation\r | |
3 | # All rights reserved. This program and the accompanying materials\r | |
4 | # are licensed and made available under the terms and conditions of the BSD License\r | |
5 | # which accompanies this distribution. The full text of the license may be found at\r | |
6 | # http://opensource.org/licenses/bsd-license.php\r | |
7 | # \r | |
8 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
9 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
10 | \r | |
11 | # Setup the environment for unix-like systems running a bash-like shell.\r | |
12 | # This file must be "sourced" not executed. For example: ". edksetup.sh"\r | |
13 | \r | |
14 | if [ "$WORKSPACE" == "" ]\r | |
15 | then\r | |
16 | echo "Please set WORKSPACE before sourcing this script."\r | |
17 | else\r | |
18 | if [ "$JAVA_HOME" == "" ]\r | |
19 | then\r | |
20 | echo "Please set JAVA_HOME before sourcing this script."\r | |
21 | else\r | |
22 | \r | |
23 | # These should be ok as they are.\r | |
24 | export ANT_HOME=$WORKSPACE/Tools/bin/apache-ant\r | |
25 | export XMLBEANS_HOME=$WORKSPACE/Tools/bin/xmlbeans\r | |
26 | 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\r | |
27 | export Framework_Tools_Path=$WORKSPACE/Tools/bin\r | |
28 | export PATH=$Framework_Tools_Path:$ANT_HOME/bin:$JAVA_HOME/bin:$PATH\r | |
29 | \r | |
30 | # Handle any particulars down here.\r | |
31 | case "`uname`" in\r | |
32 | CYGWIN*) \r | |
33 | # Convert paths to windows format.\r | |
34 | export WORKSPACE=`cygpath -w $WORKSPACE`\r | |
35 | export CLASSPATH=`cygpath -w -p $CLASSPATH`\r | |
36 | ;;\r | |
37 | esac\r | |
38 | \r | |
39 | # Now we need to build the tools.\r | |
40 | echo "If you have not done so, please build the tools by issuing 'ant -f \$WORKSPACE/Tools/build.xml'."\r | |
41 | fi\r | |
42 | fi\r |