fix "patch-tool-mxe init" for gcc

gcc (and maybe other packages) has both $(PKG)_FILE and
$(PKG)_FILE_$(BUILD). Previously the following error occurred:

 $ ./tools/patch-tool-mxe init gcc
 ./tools/patch-tool-mxe: line 57: [: too many arguments

see #983
This commit is contained in:
Boris Nagaev 2015-11-29 13:33:11 +03:00
parent baf62f66bb
commit cfb73654d3
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ setupEnv() {
sed s/'$(call SHORT_PKG_VERSION,$(PKG))'/$pkg_short_version/ | \
sed s/'$(PKG)'/$pkg/;`
export pkg_file=`grep '^$(PKG)_FILE' $mxedir/src/$pkg.mk | \
export pkg_file=`grep '^$(PKG)_FILE\>' $mxedir/src/$pkg.mk | \
sed 's/.*:= \(.*\)/\1/' | \
sed s/'$($(PKG)_VERSION)'/$pkg_version/ | \
sed s/'$(call SHORT_PKG_VERSION,$(PKG))'/$pkg_short_version/ | \