]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/BinWrappers/PosixLike/BrotliCompress
Revert BaseTools: PYTHON3 migration
[mirror_edk2.git] / BaseTools / BinWrappers / PosixLike / BrotliCompress
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 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 QLT="-q 9 -w 22"
15 ARGS=
16
17 while test $# -gt 0
18 do
19 case $1 in
20 -e)
21 ;;
22 -d)
23 ARGS+="$1 "
24 ;;
25 -o|-g)
26 ARGS+="$1 $2 "
27 shift
28 ;;
29 -q)
30 QLT="$1 $2 "
31 shift
32 ;;
33 *)
34 ARGS+="$1 "
35 ;;
36 esac
37 shift
38 done
39
40 exec Brotli $QLT $ARGS