]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/BrotliCompress/BrotliCompress.bat
1bca076febd24293ed728de825c3f8eca0519cf8
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / BrotliCompress.bat
1 @echo off
2 @setlocal
3
4 set LVL=--quality 9
5
6 :Begin
7 if "%1"=="" goto End
8
9 if "%1"=="-d" (
10 set ARGS=%ARGS% --decompress
11 shift
12 goto Begin
13 )
14
15 if "%1"=="-e" (
16 shift
17 goto Begin
18 )
19
20 if "%1"=="-g" (
21 set ARGS=%ARGS% --gap %2
22 shift
23 shift
24 goto Begin
25 )
26
27 if "%1"=="-l" (
28 set LVL=--quality %2
29 shift
30 shift
31 goto Begin
32 )
33
34 if "%1"=="-o" (
35 set ARGS=%ARGS% --output %2
36 set INTMP=%2
37 shift
38 shift
39 goto Begin
40 )
41
42 set ARGS=%ARGS% --input %1
43 shift
44 goto Begin
45
46 :End
47 Brotli %ARGS% %LVL%
48 @echo on