BaseTools/BinWrappers/PosixLike/RunBinToolFromBuildDir:
authorjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 14 Feb 2008 01:35:23 +0000 (01:35 +0000)
committerjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 14 Feb 2008 01:35:23 +0000 (01:35 +0000)
  Modified the wrapper to utilize the EDK_TOOLS_PATH environment
  variable to recognize the BaseTools source tree.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1001 7335b38e-4728-0410-8992-fb3ffe349368

BinWrappers/PosixLike/RunBinToolFromBuildDir

index a99cac3..3bd84fe 100755 (executable)
@@ -7,15 +7,15 @@ TOOL_BASENAME=`basename $0`
 if [ -n "$WORKSPACE" -a -e $WORKSPACE/Conf/BaseToolsCBinaries ]
 then
   exec $WORKSPACE/Conf/BaseToolsCBinaries/$TOOL_BASENAME
-elif [ -n "$WORKSPACE" -a -e $WORKSPACE/Conf/BaseToolsSource ]
+elif [ -n "$WORKSPACE" -a -e $EDK_TOOLS_PATH/Source/C ]
 then
-  if [ ! -e $WORKSPACE/Conf/BaseToolsSource/Source/C/bin/$TOOL_BASENAME ]
+  if [ ! -e $EDK_TOOLS_PATH/Source/C/bin/$TOOL_BASENAME ]
   then
     echo BaseTools C Tool binary was not found \($TOOL_BASENAME\)
     echo You may need to run:
     echo "  make -C $WORKSPACE/Conf/BaseToolsSource/Source/C"
   else
-    exec $WORKSPACE/Conf/BaseToolsSource/Source/C/bin/$TOOL_BASENAME $*
+    exec $EDK_TOOLS_PATH/Source/C/bin/$TOOL_BASENAME $*
   fi
 elif [ -e `dirname $0`/../../Source/C/bin/$TOOL_BASENAME ]
 then