]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/BrotliCompress/BrotliCompress.bat
BaseTools: Convert BrotliCompress.bat to DOS format
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / BrotliCompress.bat
1 @REM @file
2 @REM This script will exec Brotli tool with -e/-d options.
3 @REM
4 @REM Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 @REM This program and the accompanying materials
6 @REM are licensed and made available under the terms and conditions of the BSD License
7 @REM which accompanies this distribution. The full text of the license may be found at
8 @REM http://opensource.org/licenses/bsd-license.php
9 @REM
10 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 @REM
13
14 @echo off
15 @setlocal
16
17 set LVL=--quality 9
18
19 :Begin
20 if "%1"=="" goto End
21
22 if "%1"=="-d" (
23 set ARGS=%ARGS% --decompress
24 shift
25 goto Begin
26 )
27
28 if "%1"=="-e" (
29 shift
30 goto Begin
31 )
32
33 if "%1"=="-g" (
34 set ARGS=%ARGS% --gap %2
35 shift
36 shift
37 goto Begin
38 )
39
40 if "%1"=="-l" (
41 set LVL=--quality %2
42 shift
43 shift
44 goto Begin
45 )
46
47 if "%1"=="-o" (
48 set ARGS=%ARGS% --output %2
49 set INTMP=%2
50 shift
51 shift
52 goto Begin
53 )
54
55 set ARGS=%ARGS% --input %1
56 shift
57 goto Begin
58
59 :End
60 Brotli %ARGS% %LVL%
61 @echo on