Obliterate these files.
[mirror_edk2.git] / edksetup.sh
CommitLineData
878ddf1f 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
14if [ "$WORKSPACE" == "" ]\r
15then\r
16 echo "Please set WORKSPACE before sourcing this script."\r
17else\r
18if [ "$JAVA_HOME" == "" ]\r
19then\r
20 echo "Please set JAVA_HOME before sourcing this script."\r
21else\r
22\r
23# These should be ok as they are.\r
24export ANT_HOME=$WORKSPACE/Tools/bin/apache-ant\r
25export XMLBEANS_HOME=$WORKSPACE/Tools/bin/xmlbeans\r
26export 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
27export Framework_Tools_Path=$WORKSPACE/Tools/bin\r
28export PATH=$Framework_Tools_Path:$ANT_HOME/bin:$JAVA_HOME/bin:$PATH\r
29\r
30# Handle any particulars down here.\r
31case "`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
37esac\r
38\r
39# Now we need to build the tools.\r
40echo "If you have not done so, please build the tools by issuing 'ant -f \$WORKSPACE/Tools/build.xml'."\r
41fi\r
42fi\r