Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | #python `dirname $0`/RunToolFromSource.py `basename $0` $* |
| 3 | #exec `dirname $0`/../../../../C/bin/`basename $0` $* |
| 4 | |
| 5 | TOOL_BASENAME=`basename $0` |
| 6 | |
| 7 | if [ -n "$WORKSPACE" -a -e $WORKSPACE/Conf/BaseToolsCBinaries ] |
| 8 | then |
| 9 | exec $WORKSPACE/Conf/BaseToolsCBinaries/$TOOL_BASENAME |
| 10 | elif [ -n "$WORKSPACE" -a -e $EDK_TOOLS_PATH/Source/C ] |
| 11 | then |
| 12 | if [ ! -e $EDK_TOOLS_PATH/Source/C/bin/$TOOL_BASENAME ] |
| 13 | then |
| 14 | echo BaseTools C Tool binary was not found \($TOOL_BASENAME\) |
| 15 | echo You may need to run: |
| 16 | echo " make -C $EDK_TOOLS_PATH/Source/C" |
| 17 | else |
| 18 | exec $EDK_TOOLS_PATH/Source/C/bin/$TOOL_BASENAME $* |
| 19 | fi |
| 20 | elif [ -e `dirname $0`/../../Source/C/bin/$TOOL_BASENAME ] |
| 21 | then |
| 22 | exec `dirname $0`/../../Source/C/bin/$TOOL_BASENAME $* |
| 23 | else |
| 24 | echo Unable to find the real \'$TOOL_BASENAME\' to run |
| 25 | echo This message was printed by |
| 26 | echo " $0" |
| 27 | exit -1 |
| 28 | fi |
| 29 | |