BrotliCompress.bat 722 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. @echo off
  8. @setlocal
  9. set QLT=-q 9 -w 22
  10. set ARGS=
  11. :Begin
  12. if "%1"=="" goto End
  13. if "%1"=="-d" (
  14. set ARGS=%ARGS% %1
  15. shift
  16. goto Begin
  17. )
  18. if "%1"=="-e" (
  19. shift
  20. goto Begin
  21. )
  22. if "%1"=="-g" (
  23. set ARGS=%ARGS% %1 %2
  24. shift
  25. shift
  26. goto Begin
  27. )
  28. if "%1"=="-o" (
  29. set ARGS=%ARGS% %1 %2
  30. shift
  31. shift
  32. goto Begin
  33. )
  34. if "%1"=="-q" (
  35. set QLT=%1 %2
  36. shift
  37. shift
  38. goto Begin
  39. )
  40. set ARGS=%ARGS% %1
  41. shift
  42. goto Begin
  43. :End
  44. Brotli %QLT% %ARGS%
  45. @echo on