mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
a6b26b5dc1
excludes: - b6487dc4ef47ec9ea894eceac25f37d0b806f8aa (subtree manipulation done in previous commits) - 07f0a61ef711a2f75ded3d73545bfabdf2a64fef (see above) - 0eb7928ab8d9dcb840e4965bfa81deb752b00dfa (we don't support MSVC build method)
21 lines
788 B
Bash
Executable File
21 lines
788 B
Bash
Executable File
#!/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/minisketch/test{,-verify},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 "( wine \"${b}_orig\" \"\$@\" ) || ( sleep 1 && wine \"${b}_orig\" \"\$@\" )" >> "$b"
|
|
chmod +x "$b"
|
|
fi
|
|
done
|
|
done
|