diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-11-09 10:17:00 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-11-09 10:16:45 +0100 |
commit | 77777c8b5e3d0edbe1178d982a778b7cc9964b70 (patch) | |
tree | d6f4ae2532c7766f208610937ed99d2550497af2 /ci/test/wrap-wine.sh | |
parent | 3333d6942e8c5d823b97ea51ef88c8a0791742c6 (diff) | |
download | bitcoin-77777c8b5e3d0edbe1178d982a778b7cc9964b70.tar.xz |
ci: Run windows ci config on cirrus
Diffstat (limited to 'ci/test/wrap-wine.sh')
-rwxr-xr-x | ci/test/wrap-wine.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ci/test/wrap-wine.sh b/ci/test/wrap-wine.sh new file mode 100755 index 0000000000..58a8983e6e --- /dev/null +++ b/ci/test/wrap-wine.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2020 The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. + +export LC_ALL=C.UTF-8 + +for b_name in {"${BASE_OUTDIR}/bin"/*,src/secp256k1/*tests,src/univalue/{no_nul,test_json,unitester,object}}.exe; do + # shellcheck disable=SC2044 + for b in $(find "${BASE_ROOT_DIR}" -executable -type f -name "$(basename $b_name)"); do + if (file "$b" | grep "Windows"); then + echo "Wrap $b ..." + mv "$b" "${b}_orig" + echo '#!/usr/bin/env bash' > "$b" + echo "wine64 \"${b}_orig\" \"\$@\"" >> "$b" + chmod +x "$b" + fi + done +done |