]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/BinWrappers/PosixLike/BrotliCompress
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / BinWrappers / PosixLike / BrotliCompress
CommitLineData
de87f232
SB
1#!/usr/bin/env bash
2#
83e901a5 3# This script will exec Brotli tool with -e/-d options.
de87f232 4#
dd4f667e 5# Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
2e351cbe 6# SPDX-License-Identifier: BSD-2-Clause-Patent
de87f232 7#
dd4f667e 8QLT="-q 9 -w 22"
83e901a5 9ARGS=
de87f232 10
83e901a5
LG
11while test $# -gt 0
12do
13 case $1 in
14 -e)
83e901a5
LG
15 ;;
16 -d)
83e901a5
LG
17 ARGS+="$1 "
18 ;;
19 -o|-g)
98cb4684 20 ARGS+="$1 $2 "
de87f232 21 shift
83e901a5
LG
22 ;;
23 -q)
98cb4684 24 QLT="$1 $2 "
de87f232 25 shift
83e901a5
LG
26 ;;
27 *)
dd4f667e 28 ARGS+="$1 "
83e901a5
LG
29 ;;
30 esac
31 shift
de87f232
SB
32done
33
dd4f667e 34exec Brotli $QLT $ARGS