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