mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
BaseTools: Sync BrotliCompress script the same style
- Sync BrotliCompress script the same style with BrotliCompress.bat Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bell Song <binx.song@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
98cb468435
commit
8ee193e898
@ -14,28 +14,38 @@
|
|||||||
QLT="-q 9"
|
QLT="-q 9"
|
||||||
INPUTFLAG=0
|
INPUTFLAG=0
|
||||||
|
|
||||||
while [ $# != 0 ];do
|
for arg; do
|
||||||
case $1 in
|
if [ $1 = -d ]
|
||||||
-d)
|
then
|
||||||
INPUTFLAG=1
|
INPUTFLAG=1
|
||||||
ARGS+="$1 "
|
fi
|
||||||
;;
|
if [ $1 = -e ]
|
||||||
-e)
|
then
|
||||||
INPUTFLAG=1
|
INPUTFLAG=1
|
||||||
;;
|
shift
|
||||||
-g)
|
continue;
|
||||||
|
fi
|
||||||
|
if [ $1 = -g ]
|
||||||
|
then
|
||||||
ARGS+="$1 $2 "
|
ARGS+="$1 $2 "
|
||||||
shift
|
shift
|
||||||
;;
|
shift
|
||||||
-o)
|
continue;
|
||||||
|
fi
|
||||||
|
if [ $1 = -o ]
|
||||||
|
then
|
||||||
ARGS+="$1 $2 "
|
ARGS+="$1 $2 "
|
||||||
shift
|
shift
|
||||||
;;
|
shift
|
||||||
-q)
|
continue;
|
||||||
|
fi
|
||||||
|
if [ $1 = -q ]
|
||||||
|
then
|
||||||
QLT="$1 $2 "
|
QLT="$1 $2 "
|
||||||
shift
|
shift
|
||||||
;;
|
shift
|
||||||
*)
|
continue;
|
||||||
|
fi
|
||||||
if [ $INPUTFLAG -eq 1 ]
|
if [ $INPUTFLAG -eq 1 ]
|
||||||
then
|
then
|
||||||
if [ -z $2 ]
|
if [ -z $2 ]
|
||||||
@ -44,9 +54,8 @@ while [ $# != 0 ];do
|
|||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
ARGS+="$1 "
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
ARGS+="$1 "
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user