2017-04-05 06:57:27 +02:00
|
|
|
@REM @file
|
|
|
|
@REM This script will exec Brotli tool with -e/-d options.
|
|
|
|
@REM
|
2018-08-09 08:55:19 +02:00
|
|
|
@REM Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:03:11 +02:00
|
|
|
@REM SPDX-License-Identifier: BSD-2-Clause-Patent
|
2017-04-05 06:57:27 +02:00
|
|
|
@REM
|
|
|
|
|
2017-03-23 03:16:16 +01:00
|
|
|
@echo off
|
|
|
|
@setlocal
|
|
|
|
|
2018-08-09 08:55:19 +02:00
|
|
|
set QLT=-q 9 -w 22
|
2017-12-08 05:39:13 +01:00
|
|
|
set ARGS=
|
2017-03-23 03:16:16 +01:00
|
|
|
|
|
|
|
:Begin
|
|
|
|
if "%1"=="" goto End
|
|
|
|
|
|
|
|
if "%1"=="-d" (
|
2017-12-08 05:39:13 +01:00
|
|
|
set ARGS=%ARGS% %1
|
|
|
|
shift
|
|
|
|
goto Begin
|
2017-03-23 03:16:16 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if "%1"=="-e" (
|
|
|
|
shift
|
|
|
|
goto Begin
|
|
|
|
)
|
|
|
|
|
|
|
|
if "%1"=="-g" (
|
2017-04-13 03:19:48 +02:00
|
|
|
set ARGS=%ARGS% %1 %2
|
2017-03-23 03:16:16 +01:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto Begin
|
|
|
|
)
|
|
|
|
|
2017-04-13 03:19:48 +02:00
|
|
|
if "%1"=="-o" (
|
|
|
|
set ARGS=%ARGS% %1 %2
|
2017-03-23 03:16:16 +01:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto Begin
|
|
|
|
)
|
|
|
|
|
2017-04-13 03:19:48 +02:00
|
|
|
if "%1"=="-q" (
|
|
|
|
set QLT=%1 %2
|
2017-03-23 03:16:16 +01:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto Begin
|
|
|
|
)
|
|
|
|
|
2018-08-09 08:55:19 +02:00
|
|
|
set ARGS=%ARGS% %1
|
2017-03-23 03:16:16 +01:00
|
|
|
shift
|
|
|
|
goto Begin
|
|
|
|
|
|
|
|
:End
|
2018-08-09 08:55:19 +02:00
|
|
|
Brotli %QLT% %ARGS%
|
2017-04-07 09:07:49 +02:00
|
|
|
@echo on
|