]>
Commit | Line | Data |
---|---|---|
de87f232 SB |
1 | #!/usr/bin/env bash |
2 | # | |
3 | # This script will exec Brotli tool. | |
4 | # | |
5 | # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> | |
6 | # This program and the accompanying materials | |
7 | # are licensed and made available under the terms and conditions of the BSD License | |
8 | # which accompanies this distribution. The full text of the license may be found at | |
9 | # http://opensource.org/licenses/bsd-license.php | |
10 | # | |
11 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |
12 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |
13 | # | |
14 | LVL="--quality 9" | |
15 | ||
16 | while [ $# != 0 ];do | |
17 | case $1 in | |
18 | -d) | |
19 | ARGS+="--decompress " | |
20 | ;; | |
21 | -e) | |
22 | ;; | |
23 | -g) | |
24 | ARGS+="--gap $2 " | |
25 | shift | |
26 | ;; | |
27 | -l) | |
28 | LVL="--quality $2 " | |
29 | shift | |
30 | ;; | |
31 | -o) | |
32 | ARGS+="--output $2 " | |
33 | shift | |
34 | ;; | |
35 | *) | |
36 | ARGS+="--input $1 " | |
37 | esac | |
38 | ||
39 | shift | |
40 | done | |
41 | ||
42 | exec Brotli $ARGS $LVL |