summaryrefslogtreecommitdiffstats
path: root/BaseTools/BinPipWrappers/PosixLike/BrotliCompress
blob: 663860bb3e5719e63085bc67ab400b299a01685c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
#
# This script will exec Brotli tool with -e/-d options.
#
# Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
QLT="-q 9 -w 22"
ARGS=

while test $# -gt 0
do
  case $1 in
    -e)
      ;;
    -d)
      ARGS+="$1 "
      ;;
    -o|-g)
      ARGS+="$1 $2 "
      shift
      ;;
    -q)
      QLT="$1 $2 "
      shift
      ;;
    *)
      ARGS+="$1 "
      ;;
  esac
  shift
done

exec Brotli $QLT $ARGS