diff options
author | Adrien Nader <adrien@notk.org> | 2014-12-14 12:33:21 +0100 |
---|---|---|
committer | Adrien Nader <adrien@notk.org> | 2014-12-14 12:33:21 +0100 |
commit | 144ee371536acf530e7145e8bc5d1b2f58e9f87d (patch) | |
tree | ee547dade42265fbaff5787d04a2fa63a00b6297 | |
parent | 5961f4716588e0ca85b95d90cafb689ffd7f9206 (diff) |
zz_config/win-builds-switch: could try to match "native_toolchain..".
-rw-r--r-- | zz_config/win-builds-switch.in | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/zz_config/win-builds-switch.in b/zz_config/win-builds-switch.in index 44f3ebf..bf9601a 100644 --- a/zz_config/win-builds-switch.in +++ b/zz_config/win-builds-switch.in @@ -36,17 +36,21 @@ put_toolchain_in_path() { local BASE="${1}" local BITS="${2}" - local BASE2 + local GLOB RE REPLACEMENT if [ -n "${BITS}" ]; then - BASE2="${BASE}_" + GLOB="${BASE}_??" + RE="${BASE}_.." + REPLACEMENT="${BASE}_${BITS}" else - BASE2="${BASE}" + GLOB="${BASE}" + RE="${BASE}" + REPLACEMENT="${BASE}" fi replace_in_path \ - "/opt/${BASE2}??/bin" \ - "/opt/${BASE2}../bin" \ - "/opt/${BASE2}${BITS}/bin" + "/opt/${GLOB}/bin" \ + "/opt/${RE}/bin" \ + "/opt/${REPLACEMENT}/bin" } unset PKG_CONFIG_PATH |