]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Source/C/BrotliCompress/BrotliCompress.bat
BaseTools: resolve initialization order errors in VfrFormPkg.h
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / 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, 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
14@echo off\r
15@setlocal\r
16\r
17set QLT=-q 9\r
18set INPUTFLAG=0\r
19set ARGS=\r
20\r
21:Begin\r
22if "%1"=="" goto End\r
23\r
24if "%1"=="-d" (\r
25 set INPUTFLAG=1\r
26 set ARGS=%ARGS% %1\r
27 shift\r
28 goto Begin\r
29)\r
30\r
31if "%1"=="-e" (\r
32 set INPUTFLAG=1\r
33 shift\r
34 goto Begin\r
35)\r
36\r
37if "%1"=="-g" (\r
38 set ARGS=%ARGS% %1 %2\r
39 shift\r
40 shift\r
41 goto Begin\r
42)\r
43\r
44if "%1"=="-o" (\r
45 set ARGS=%ARGS% %1 %2\r
46 shift\r
47 shift\r
48 goto Begin\r
49)\r
50\r
51if "%1"=="-q" (\r
52 set QLT=%1 %2\r
53 shift\r
54 shift\r
55 goto Begin\r
56)\r
57\r
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
63)\r
64shift\r
65goto Begin\r
66\r
67:End\r
68Brotli %ARGS% %QLT%\r
69@echo on\r