diff options
Diffstat (limited to 'Tools/BaseTools/Bin/PosixLike/RunToolFromSource')
-rwxr-xr-x | Tools/BaseTools/Bin/PosixLike/RunToolFromSource | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tools/BaseTools/Bin/PosixLike/RunToolFromSource b/Tools/BaseTools/Bin/PosixLike/RunToolFromSource new file mode 100755 index 0000000000..25e5c84dbe --- /dev/null +++ b/Tools/BaseTools/Bin/PosixLike/RunToolFromSource @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +if [ ! $WORKSPACE=="" ] +then + echo WORKSPACE environment variable must be set +elif [ -e $WORKSPACE/Conf/BaseToolsFrozenPython ] +then + $WORKSPACE/Conf/BaseToolsFrozenPython/`basename $0` +elif [ -e $WORKSPACE/Conf/BaseToolsSource ] +then + PYTHONPATH=$WORKSPACE/Conf/BaseToolsSource/Source/Python \ + python $WORKSPACE/Conf/BaseToolsSource/Source/Python/`basename $0`/`basename $0`.py $* +else + echo Unable to find the real \'`basename $0`\' to run + echo A symbolic link is needed under + echo " $WORKSPACE/Conf" + echo This message was printed by + echo " $0" + exit -1 +fi + |