]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Bin/PosixLike/RunToolFromSource
Restoring $WORKSPACE/BaseTools location, as the plan is to deprecate
[mirror_edk2.git] / BaseTools / Bin / PosixLike / RunToolFromSource
1 #!/usr/bin/env bash
2
3 if [ ! $WORKSPACE=="" ]
4 then
5 echo WORKSPACE environment variable must be set
6 elif [ -e $WORKSPACE/Conf/BaseToolsFrozenPython ]
7 then
8 $WORKSPACE/Conf/BaseToolsFrozenPython/`basename $0`
9 elif [ -e $WORKSPACE/Conf/BaseToolsSource ]
10 then
11 PYTHONPATH=$WORKSPACE/Conf/BaseToolsSource/Source/Python \
12 python $WORKSPACE/Conf/BaseToolsSource/Source/Python/`basename $0`/`basename $0`.py $*
13 else
14 echo Unable to find the real \'`basename $0`\' to run
15 echo A symbolic link is needed under
16 echo " $WORKSPACE/Conf"
17 echo This message was printed by
18 echo " $0"
19 exit -1
20 fi
21