]> git.proxmox.com Git - mirror_edk2.git/blobdiff - edksetup.sh
Reviewed the code comments in the Include/Protocol directory for typos, grammar issue...
[mirror_edk2.git] / edksetup.sh
old mode 100644 (file)
new mode 100755 (executable)
index 69b79f0..b5a1cb1
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2006, Intel Corporation
+# Copyright (c) 2006 - 2008, Intel Corporation
 # All rights reserved. This program and the accompanying materials
 # are licensed and made available under the terms and conditions of the BSD License
 # which accompanies this distribution.  The full text of the license may be found at
 # windows style.
 
 if [ \
+     -z "$1" -o \
      "$1" = "-?" -o \
      "$1" = "-h" -o \
      "$1" = "--help" \
    ]
 then
-  echo BaseTools Usage: \'. edksetup.sh NewBuild\'
-  echo Ant Tools Usage: \'. edksetup.sh [ForceRebuild]\'
+  echo BaseTools Usage: \'. edksetup.sh\'
   echo
   echo Please note: This script must be \'sourced\' so the environment can be changed.
   echo \(Either \'. edksetup.sh\' or \'source edksetup.sh\'\)
   return
 fi
 
-if [ "$1" = NewBuild ]
+if [ -z "$WORKSPACE" ]
 then
-  echo To utilize the new build system, run
-  echo "  . Tools/BuildEnv [options]"
-  echo Try \'. Tools/BuildEnv --help\' for more information.
-  return
+  . BaseTools/BuildEnv $*
 else
-  . $WORKSPACE/Tools/OldBuildEnv $*
+  . $WORKSPACE/BaseTools/BuildEnv $*
 fi