mirror of https://git.wownero.com/dsc/mxe.git
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:
parent
baf62f66bb
commit
cfb73654d3
|
@ -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/ | \
|
||||
|
|
Loading…
Reference in New Issue