]>
Commit | Line | Data |
---|---|---|
8693aa6a LG |
1 | @REM @file\r |
2 | @REM This script will exec Brotli tool with -e/-d options.\r | |
3 | @REM\r | |
dd4f667e | 4 | @REM Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>\r |
8693aa6a LG |
5 | @REM This program and the accompanying materials\r |
6 | @REM are licensed and made available under the terms and conditions of the BSD License\r | |
7 | @REM which accompanies this distribution. The full text of the license may be found at\r | |
8 | @REM http://opensource.org/licenses/bsd-license.php\r | |
9 | @REM\r | |
10 | @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | @REM\r | |
13 | \r | |
87d97b6a SB |
14 | @echo off\r |
15 | @setlocal\r | |
16 | \r | |
dd4f667e | 17 | set QLT=-q 9 -w 22\r |
83e901a5 | 18 | set ARGS=\r |
87d97b6a SB |
19 | \r |
20 | :Begin\r | |
21 | if "%1"=="" goto End\r | |
22 | \r | |
23 | if "%1"=="-d" (\r | |
83e901a5 LG |
24 | set ARGS=%ARGS% %1\r |
25 | shift\r | |
26 | goto Begin\r | |
87d97b6a SB |
27 | )\r |
28 | \r | |
29 | if "%1"=="-e" (\r | |
30 | shift\r | |
31 | goto Begin\r | |
32 | )\r | |
33 | \r | |
34 | if "%1"=="-g" (\r | |
98cb4684 | 35 | set ARGS=%ARGS% %1 %2\r |
87d97b6a SB |
36 | shift\r |
37 | shift\r | |
38 | goto Begin\r | |
39 | )\r | |
40 | \r | |
98cb4684 SB |
41 | if "%1"=="-o" (\r |
42 | set ARGS=%ARGS% %1 %2\r | |
87d97b6a SB |
43 | shift\r |
44 | shift\r | |
45 | goto Begin\r | |
46 | )\r | |
47 | \r | |
98cb4684 SB |
48 | if "%1"=="-q" (\r |
49 | set QLT=%1 %2\r | |
87d97b6a SB |
50 | shift\r |
51 | shift\r | |
52 | goto Begin\r | |
53 | )\r | |
54 | \r | |
dd4f667e | 55 | set ARGS=%ARGS% %1\r |
87d97b6a SB |
56 | shift\r |
57 | goto Begin\r | |
58 | \r | |
59 | :End\r | |
dd4f667e | 60 | Brotli %QLT% %ARGS%\r |
59a36f21 | 61 | @echo on\r |