X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FBinWrappers%2FPosixLike%2FBrotliCompress;h=49358b232984b777eb854535267eb6deae895ca0;hp=59c6465dadd0e48a40d8289c18db1786a68bc63d;hb=98cb468435be54c3191f4bca48cf5135b1927eaf;hpb=9ee3283bfb466c44afa5692591445cd377f08377 diff --git a/BaseTools/BinWrappers/PosixLike/BrotliCompress b/BaseTools/BinWrappers/PosixLike/BrotliCompress index 59c6465dad..49358b2329 100755 --- a/BaseTools/BinWrappers/PosixLike/BrotliCompress +++ b/BaseTools/BinWrappers/PosixLike/BrotliCompress @@ -11,32 +11,43 @@ # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # -LVL="--quality 9" +QLT="-q 9" +INPUTFLAG=0 while [ $# != 0 ];do case $1 in -d) - ARGS+="--decompress " + INPUTFLAG=1 + ARGS+="$1 " ;; -e) + INPUTFLAG=1 ;; -g) - ARGS+="--gap $2 " + ARGS+="$1 $2 " shift ;; - -l) - LVL="--quality $2 " + -o) + ARGS+="$1 $2 " shift ;; - -o) - ARGS+="--output $2 " + -q) + QLT="$1 $2 " shift ;; *) - ARGS+="--input $1 " + if [ $INPUTFLAG -eq 1 ] + then + if [ -z $2 ] + then + ARGS+="$QLT -i $1 " + break; + fi + fi + ARGS+="$1 " esac shift done -exec Brotli $ARGS $LVL +exec Brotli $ARGS