]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Bin/PosixLike/RunToolFromSource
Restoring $WORKSPACE/BaseTools location, as the plan is to deprecate
[mirror_edk2.git] / BaseTools / Bin / PosixLike / RunToolFromSource
CommitLineData
07a756b9 1#!/usr/bin/env bash
2
3if [ ! $WORKSPACE=="" ]
4then
5 echo WORKSPACE environment variable must be set
6elif [ -e $WORKSPACE/Conf/BaseToolsFrozenPython ]
7then
8 $WORKSPACE/Conf/BaseToolsFrozenPython/`basename $0`
9elif [ -e $WORKSPACE/Conf/BaseToolsSource ]
10then
11 PYTHONPATH=$WORKSPACE/Conf/BaseToolsSource/Source/Python \
12 python $WORKSPACE/Conf/BaseToolsSource/Source/Python/`basename $0`/`basename $0`.py $*
13else
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
20fi
21