]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/BinWrappers/PosixLike/BrotliCompress
BaseTools: Replace BSD License with BSD+Patent License
[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 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8 QLT="-q 9 -w 22"
9 ARGS=
10
11 while test $# -gt 0
12 do
13 case $1 in
14 -e)
15 ;;
16 -d)
17 ARGS+="$1 "
18 ;;
19 -o|-g)
20 ARGS+="$1 $2 "
21 shift
22 ;;
23 -q)
24 QLT="$1 $2 "
25 shift
26 ;;
27 *)
28 ARGS+="$1 "
29 ;;
30 esac
31 shift
32 done
33
34 exec Brotli $QLT $ARGS