BaseTools: Improve LzmaF86Compress wrapper

- Remove test usage declared obsolescent by POSIX
- Pass argv array through as literal rather than forming into a string, then
  string-splitting and glob-expanding same.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Charles Duffy <chaduffy@cisco.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19697 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Charles Duffy 2016-01-20 05:15:55 +00:00 committed by yzhu52
parent 87157f76f0
commit 8d0776f3e6
2 changed files with 16 additions and 14 deletions

View File

@ -12,11 +12,12 @@
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# #
for arg in $*; do for arg; do
if [ "arg" = "-e" -o "arg" = "-d" ]; then case $arg in
FLAG=--f86 -e|-d)
break; set -- "$@" --f86
fi break
done ;;
esac
LzmaCompress $* $FLAG exec LzmaCompress "$@"

View File

@ -12,11 +12,12 @@
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# #
for arg in $*; do for arg; do
if [ "$arg" = "-e" -o "$arg" = "-d" ]; then case $arg in
FLAG=--f86 -e|-d)
break; set -- "$@" --f86
fi break
done ;;
esac
LzmaCompress $* $FLAG exec LzmaCompress "$@"