]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat
BaseTools: Update windows and linux run scripts file to use Python3
[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 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 -w 22
18 set ARGS=
19
20 :Begin
21 if "%1"=="" goto End
22
23 if "%1"=="-d" (
24 set ARGS=%ARGS% %1
25 shift
26 goto Begin
27 )
28
29 if "%1"=="-e" (
30 shift
31 goto Begin
32 )
33
34 if "%1"=="-g" (
35 set ARGS=%ARGS% %1 %2
36 shift
37 shift
38 goto Begin
39 )
40
41 if "%1"=="-o" (
42 set ARGS=%ARGS% %1 %2
43 shift
44 shift
45 goto Begin
46 )
47
48 if "%1"=="-q" (
49 set QLT=%1 %2
50 shift
51 shift
52 goto Begin
53 )
54
55 set ARGS=%ARGS% %1
56 shift
57 goto Begin
58
59 :End
60 Brotli %QLT% %ARGS%
61 @echo on