]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/BinWrappers/PosixLike/BrotliCompress
3 # This script will exec Brotli tool with -e/-d options.
5 # Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
11 full_cmd
=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
12 dir
=$
(dirname "$full_cmd")
39 if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
41 exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
42 elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
44 if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
46 echo "BaseTools C Tool binary was not found ($cmd)"
47 echo "You may need to run:"
48 echo " make -C $EDK_TOOLS_PATH/Source/C"
50 exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" $QLT $ARGS
52 elif [ -e "$dir/../../Source/C/bin/$cmd" ]
54 exec "$dir/../../Source/C/bin/$cmd" $QLT $ARGS
56 echo "Unable to find the real '$cmd' to run"
57 echo "This message was printed by"