]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/BinWrappers/PosixLike/BrotliCompress
BaseTools: Update Brotli and BrotliCompress mode and format
[mirror_edk2.git] / BaseTools / BinWrappers / PosixLike / BrotliCompress
CommitLineData
de87f232
SB
1#!/usr/bin/env bash
2#
3# This script will exec Brotli tool.
4#
5# Copyright (c) 2017, 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#
14LVL="--quality 9"
15
16while [ $# != 0 ];do
17 case $1 in
18 -d)
19 ARGS+="--decompress "
20 ;;
21 -e)
22 ;;
23 -g)
24 ARGS+="--gap $2 "
25 shift
26 ;;
27 -l)
28 LVL="--quality $2 "
29 shift
30 ;;
31 -o)
32 ARGS+="--output $2 "
33 shift
34 ;;
35 *)
36 ARGS+="--input $1 "
37 esac
38
39shift
40done
41
42exec Brotli $ARGS $LVL