]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/BinWrappers/PosixLike/BrotliCompress
BaseTools: Update Brotli Compress to the latest one 1.0.6
[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>
de87f232
SB
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#
dd4f667e 14QLT="-q 9 -w 22"
83e901a5 15ARGS=
de87f232 16
83e901a5
LG
17while test $# -gt 0
18do
19 case $1 in
20 -e)
83e901a5
LG
21 ;;
22 -d)
83e901a5
LG
23 ARGS+="$1 "
24 ;;
25 -o|-g)
98cb4684 26 ARGS+="$1 $2 "
de87f232 27 shift
83e901a5
LG
28 ;;
29 -q)
98cb4684 30 QLT="$1 $2 "
de87f232 31 shift
83e901a5
LG
32 ;;
33 *)
dd4f667e 34 ARGS+="$1 "
83e901a5
LG
35 ;;
36 esac
37 shift
de87f232
SB
38done
39
dd4f667e 40exec Brotli $QLT $ARGS