summaryrefslogtreecommitdiffstats
path: root/BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat
blob: 788c99a1307d4dd00cb0cfa8c8042a2fee00fa9e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@REM @file
@REM This script will exec Brotli tool with -e/-d options.
@REM
@REM Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
@REM SPDX-License-Identifier: BSD-2-Clause-Patent
@REM

@echo off
@setlocal

set QLT=-q 9 -w 22
set ARGS=

:Begin
if "%1"=="" goto End

if "%1"=="-d" (
  set ARGS=%ARGS% %1
  shift
  goto Begin
)

if "%1"=="-e" (
  shift
  goto Begin
)

if "%1"=="-g" (
  set ARGS=%ARGS% %1 %2
  shift
  shift
  goto Begin
)

if "%1"=="-o" (
  set ARGS=%ARGS% %1 %2
  shift
  shift
  goto Begin
)

if "%1"=="-q" (
  set QLT=%1 %2
  shift
  shift
  goto Begin
)

set ARGS=%ARGS% %1
shift
goto Begin

:End
Brotli %QLT% %ARGS%
@echo on