]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/BrotliCompress/BrotliCompress.bat
BaseTools: resolve initialization order errors in VfrFormPkg.h
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / 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
4@REM Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
5@REM This program and the accompanying materials\r
6@REM are licensed and made available under the terms and conditions of the BSD License\r
7@REM which accompanies this distribution. The full text of the license may be found at\r
8@REM http://opensource.org/licenses/bsd-license.php\r
9@REM\r
10@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12@REM\r
13\r
87d97b6a
SB
14@echo off\r
15@setlocal\r
16\r
98cb4684
SB
17set QLT=-q 9\r
18set INPUTFLAG=0\r
83e901a5 19set ARGS=\r
87d97b6a
SB
20\r
21:Begin\r
22if "%1"=="" goto End\r
23\r
24if "%1"=="-d" (\r
98cb4684 25 set INPUTFLAG=1\r
83e901a5
LG
26 set ARGS=%ARGS% %1\r
27 shift\r
28 goto Begin\r
87d97b6a
SB
29)\r
30\r
31if "%1"=="-e" (\r
98cb4684 32 set INPUTFLAG=1\r
87d97b6a
SB
33 shift\r
34 goto Begin\r
35)\r
36\r
37if "%1"=="-g" (\r
98cb4684 38 set ARGS=%ARGS% %1 %2\r
87d97b6a
SB
39 shift\r
40 shift\r
41 goto Begin\r
42)\r
43\r
98cb4684
SB
44if "%1"=="-o" (\r
45 set ARGS=%ARGS% %1 %2\r
87d97b6a
SB
46 shift\r
47 shift\r
48 goto Begin\r
49)\r
50\r
98cb4684
SB
51if "%1"=="-q" (\r
52 set QLT=%1 %2\r
87d97b6a
SB
53 shift\r
54 shift\r
55 goto Begin\r
56)\r
57\r
83e901a5
LG
58if %INPUTFLAG% == 1 (\r
59 set ARGS=%ARGS% -i %1\r
60 set INPUTFLAG=0\r
61) else (\r
62 set ARGS=%ARGS% %1\r
98cb4684 63)\r
87d97b6a
SB
64shift\r
65goto Begin\r
66\r
67:End\r
83e901a5 68Brotli %ARGS% %QLT%\r
59a36f21 69@echo on\r