]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / BinWrappers / WindowsLike / BrotliCompress.bat
CommitLineData
8693aa6a
LG
1@REM @file\r
2@REM This script will exec Brotli tool with -e/-d options.\r
3@REM\r
dd4f667e 4@REM Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>\r
2e351cbe 5@REM SPDX-License-Identifier: BSD-2-Clause-Patent\r
8693aa6a
LG
6@REM\r
7\r
87d97b6a
SB
8@echo off\r
9@setlocal\r
10\r
dd4f667e 11set QLT=-q 9 -w 22\r
83e901a5 12set ARGS=\r
87d97b6a
SB
13\r
14:Begin\r
15if "%1"=="" goto End\r
16\r
17if "%1"=="-d" (\r
83e901a5
LG
18 set ARGS=%ARGS% %1\r
19 shift\r
20 goto Begin\r
87d97b6a
SB
21)\r
22\r
23if "%1"=="-e" (\r
24 shift\r
25 goto Begin\r
26)\r
27\r
28if "%1"=="-g" (\r
98cb4684 29 set ARGS=%ARGS% %1 %2\r
87d97b6a
SB
30 shift\r
31 shift\r
32 goto Begin\r
33)\r
34\r
98cb4684
SB
35if "%1"=="-o" (\r
36 set ARGS=%ARGS% %1 %2\r
87d97b6a
SB
37 shift\r
38 shift\r
39 goto Begin\r
40)\r
41\r
98cb4684
SB
42if "%1"=="-q" (\r
43 set QLT=%1 %2\r
87d97b6a
SB
44 shift\r
45 shift\r
46 goto Begin\r
47)\r
48\r
dd4f667e 49set ARGS=%ARGS% %1\r
87d97b6a
SB
50shift\r
51goto Begin\r
52\r
53:End\r
dd4f667e 54Brotli %QLT% %ARGS%\r
59a36f21 55@echo on\r