]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/BinWrappers/PosixLike/BrotliCompress
BaseTools: Add --version option in Brotli and BrotliCompress
[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#
98cb4684
SB
14QLT="-q 9"
15INPUTFLAG=0
de87f232
SB
16
17while [ $# != 0 ];do
18 case $1 in
19 -d)
98cb4684
SB
20 INPUTFLAG=1
21 ARGS+="$1 "
de87f232
SB
22 ;;
23 -e)
98cb4684 24 INPUTFLAG=1
de87f232
SB
25 ;;
26 -g)
98cb4684 27 ARGS+="$1 $2 "
de87f232
SB
28 shift
29 ;;
98cb4684
SB
30 -o)
31 ARGS+="$1 $2 "
de87f232
SB
32 shift
33 ;;
98cb4684
SB
34 -q)
35 QLT="$1 $2 "
de87f232
SB
36 shift
37 ;;
38 *)
98cb4684
SB
39 if [ $INPUTFLAG -eq 1 ]
40 then
41 if [ -z $2 ]
42 then
43 ARGS+="$QLT -i $1 "
44 break;
45 fi
46 fi
47 ARGS+="$1 "
de87f232
SB
48 esac
49
50shift
51done
52
98cb4684 53exec Brotli $ARGS