BrotliCompress 493 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. #
  3. # This script will exec Brotli tool with -e/-d options.
  4. #
  5. # Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. QLT="-q 9 -w 22"
  9. ARGS=
  10. while test $# -gt 0
  11. do
  12. case $1 in
  13. -e)
  14. ;;
  15. -d)
  16. ARGS+="$1 "
  17. ;;
  18. -o|-g)
  19. ARGS+="$1 $2 "
  20. shift
  21. ;;
  22. -q)
  23. QLT="$1 $2 "
  24. shift
  25. ;;
  26. *)
  27. ARGS+="$1 "
  28. ;;
  29. esac
  30. shift
  31. done
  32. exec Brotli $QLT $ARGS