VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/BaseTools/BinPipWrappers/PosixLike/BrotliCompress@ 105681

最後變更 在這個檔案從105681是 89983,由 vboxsync 提交於 4 年 前

Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
檔案大小: 1.3 KB
 
1#!/usr/bin/env bash
2#
3# This script will exec Brotli tool with -e/-d options.
4#
5# Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
6# SPDX-License-Identifier: BSD-2-Clause-Patent
7#
8QLT="-q 9 -w 22"
9ARGS=
10
11full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
12dir=$(dirname "$full_cmd")
13cmd=${full_cmd##*/}
14
15while test $# -gt 0
16do
17 case $1 in
18 -e)
19 ;;
20 -d)
21 ARGS+="$1 "
22 ;;
23 -o|-g)
24 ARGS+="$1 $2 "
25 shift
26 ;;
27 -q)
28 QLT="$1 $2 "
29 shift
30 ;;
31 *)
32 ARGS+="$1 "
33 ;;
34 esac
35 shift
36done
37
38
39if [ -n "$WORKSPACE" ] && [ -e "$WORKSPACE/Conf/BaseToolsCBinaries" ]
40then
41 exec "$WORKSPACE/Conf/BaseToolsCBinaries/$cmd"
42elif [ -n "$WORKSPACE" ] && [ -e "$EDK_TOOLS_PATH/Source/C" ]
43then
44 if [ ! -e "$EDK_TOOLS_PATH/Source/C/bin/$cmd" ]
45 then
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"
49 else
50 exec "$EDK_TOOLS_PATH/Source/C/bin/$cmd" $QLT $ARGS
51 fi
52elif [ -e "$dir/../../Source/C/bin/$cmd" ]
53then
54 exec "$dir/../../Source/C/bin/$cmd" $QLT $ARGS
55else
56 echo "Unable to find the real '$cmd' to run"
57 echo "This message was printed by"
58 echo " $0"
59 exit 127
60fi
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette