]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Source/C/BrotliCompress/BrotliCompress.bat
BaseTools: Add --version option in Brotli and BrotliCompress
[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
19\r
20:Begin\r
21if "%1"=="" goto End\r
22\r
23if "%1"=="-d" (\r
24 set INPUTFLAG=1\r
25)\r
26\r
27if "%1"=="-e" (\r
28 set INPUTFLAG=1\r
29 shift\r
30 goto Begin\r
31)\r
32\r
33if "%1"=="-g" (\r
34 set ARGS=%ARGS% %1 %2\r
35 shift\r
36 shift\r
37 goto Begin\r
38)\r
39\r
40if "%1"=="-o" (\r
41 set ARGS=%ARGS% %1 %2\r
42 shift\r
43 shift\r
44 goto Begin\r
45)\r
46\r
47if "%1"=="-q" (\r
48 set QLT=%1 %2\r
49 shift\r
50 shift\r
51 goto Begin\r
52)\r
53\r
54if %INPUTFLAG%==1 (\r
55 if "%2"=="" (\r
56 set ARGS=%ARGS% %QLT% -i %1\r
57 goto End\r
58 )\r
59)\r
60\r
61set ARGS=%ARGS% %1\r
62shift\r
63goto Begin\r
64\r
65:End\r
66Brotli %ARGS%\r
67@echo on\r