]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / BinWrappers / WindowsLike / BrotliCompress.bat
1 @REM @file
2 @REM This script will exec Brotli tool with -e/-d options.
3 @REM
4 @REM Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
5 @REM SPDX-License-Identifier: BSD-2-Clause-Patent
6 @REM
7
8 @echo off
9 @setlocal
10
11 set QLT=-q 9 -w 22
12 set ARGS=
13
14 :Begin
15 if "%1"=="" goto End
16
17 if "%1"=="-d" (
18 set ARGS=%ARGS% %1
19 shift
20 goto Begin
21 )
22
23 if "%1"=="-e" (
24 shift
25 goto Begin
26 )
27
28 if "%1"=="-g" (
29 set ARGS=%ARGS% %1 %2
30 shift
31 shift
32 goto Begin
33 )
34
35 if "%1"=="-o" (
36 set ARGS=%ARGS% %1 %2
37 shift
38 shift
39 goto Begin
40 )
41
42 if "%1"=="-q" (
43 set QLT=%1 %2
44 shift
45 shift
46 goto Begin
47 )
48
49 set ARGS=%ARGS% %1
50 shift
51 goto Begin
52
53 :End
54 Brotli %QLT% %ARGS%
55 @echo on