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