]>
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 | |
4 | @REM Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r | |
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 | |
98cb4684 SB |
17 | set QLT=-q 9\r |
18 | set INPUTFLAG=0\r | |
87d97b6a SB |
19 | \r |
20 | :Begin\r | |
21 | if "%1"=="" goto End\r | |
22 | \r | |
23 | if "%1"=="-d" (\r | |
98cb4684 | 24 | set INPUTFLAG=1\r |
87d97b6a SB |
25 | )\r |
26 | \r | |
27 | if "%1"=="-e" (\r | |
98cb4684 | 28 | set INPUTFLAG=1\r |
87d97b6a SB |
29 | shift\r |
30 | goto Begin\r | |
31 | )\r | |
32 | \r | |
33 | if "%1"=="-g" (\r | |
98cb4684 | 34 | set ARGS=%ARGS% %1 %2\r |
87d97b6a SB |
35 | shift\r |
36 | shift\r | |
37 | goto Begin\r | |
38 | )\r | |
39 | \r | |
98cb4684 SB |
40 | if "%1"=="-o" (\r |
41 | set ARGS=%ARGS% %1 %2\r | |
87d97b6a SB |
42 | shift\r |
43 | shift\r | |
44 | goto Begin\r | |
45 | )\r | |
46 | \r | |
98cb4684 SB |
47 | if "%1"=="-q" (\r |
48 | set QLT=%1 %2\r | |
87d97b6a SB |
49 | shift\r |
50 | shift\r | |
51 | goto Begin\r | |
52 | )\r | |
53 | \r | |
98cb4684 SB |
54 | if %INPUTFLAG%==1 (\r |
55 | if "%2"=="" (\r | |
56 | set ARGS=%ARGS% %QLT% -i %1\r | |
57 | goto End\r | |
58 | )\r | |
59 | )\r | |
60 | \r | |
61 | set ARGS=%ARGS% %1\r | |
87d97b6a SB |
62 | shift\r |
63 | goto Begin\r | |
64 | \r | |
65 | :End\r | |
98cb4684 | 66 | Brotli %ARGS%\r |
59a36f21 | 67 | @echo on\r |