]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/BrotliCompress/BrotliCompress.bat
BaseTools: Add the missing copyrights in BrotliCompress.bat
[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
17set LVL=--quality 9\r
18\r
19:Begin\r
20if "%1"=="" goto End\r
21\r
22if "%1"=="-d" (\r
23 set ARGS=%ARGS% --decompress\r
24 shift\r
25 goto Begin\r
26)\r
27\r
28if "%1"=="-e" (\r
29 shift\r
30 goto Begin\r
31)\r
32\r
33if "%1"=="-g" (\r
34 set ARGS=%ARGS% --gap %2\r
35 shift\r
36 shift\r
37 goto Begin\r
38)\r
39\r
40if "%1"=="-l" (\r
41 set LVL=--quality %2\r
42 shift\r
43 shift\r
44 goto Begin\r
45)\r
46\r
47if "%1"=="-o" (\r
48 set ARGS=%ARGS% --output %2\r
49 set INTMP=%2\r
50 shift\r
51 shift\r
52 goto Begin\r
53)\r
54\r
55set ARGS=%ARGS% --input %1\r
56shift\r
57goto Begin\r
58\r
59:End\r
60Brotli %ARGS% %LVL%\r
61@echo on\r