#!/bin/bash set -e set -x git submodule foreach --recursive 'git reset --hard' git submodule foreach --recursive 'git clean -xdf' git submodule update --init --recursive --remote git config --local include.path ../.gitconfig set +e set +x rm -r x64 set -e src=libsodium/libsodium.vcxproj dest=libsodium/libsodium.vcxproj wxwin=wxWidgets if [[ "$OSTYPE" == "linux-gnu"* ]]; then chmod 755 docs/mkdocs.sh chmod 755 docs/check_html.sh chmod 755 mpir/devel/regen chmod 755 mpir/devel/setversion chmod 755 mpir/tune/aligntest chmod 755 mpir/devel/benchmpn chmod 755 wxWidgets/build/tools/*.sh chmod 755 wxWidgets/distrib/autopackage/makeautopackage chmod 755 wxWidgets/docs/doxygen/*.sh chmod 755 wxWidgets/interface/*.sh chmod 755 wxWidgets/lib/*.sh chmod 755 wxWidgets/misc/scripts/*.sh chmod 755 wxWidgets/misc/scripts/check_unused_headers chmod 755 wxWidgets/src/expat/*.sh chmod 755 wxWidgets/src/*/contrib/oss-fuzz/*.sh chmod 755 wxWidgets/tests/fuzz/*.sh chmod 755 wxWidgets/utils/ifacecheck/*.sh fi cat $src | sed 's/MultiByte/Unicode/g' | sed 's/MultiThreadedDebugMultiThreadedDebugDLLMultiThreadedMultiThreadedDLL tempx unix2dos tempx mv -v tempx $dest src=libsodium/test/default/wintest.bat cat $src | sed 's/SET[[:blank:]]\+CFLAGS=%CFLAGS%[[:blank:]]\(.*\)\/MT\(.*\)DSODIUM_STATIC[[:blank:]]\+\/DSODIUM_EXPORT/SET CFLAGS=%CFLAGS% \1\/MD\2DSODIUM_STATIC \/DSODIUM_EXPORT/g'> tempx unix2dos tempx mv -v tempx $src src=mpir/msvc/vs22/lib_mpir_gc/lib_mpir_gc.vcxproj dest=$src cat $src | grep -v RuntimeLibrary | sed 's/^\(.*\)NDEBUG\(.*\)$/\1NDEBUG\2\ MultiThreadedDLL<\/RuntimeLibrary>/g' | sed 's/v[[:digit:]]\{3\}/v143/g' | sed 's/^\(.*\)_DEBUG\(.*\)$/\1_DEBUG\2\ MultiThreadedDebugDLL<\/RuntimeLibrary>/g' > tempx unix2dos tempx mv -v tempx $dest src=mpir/msvc/vs22/dll_mpir_gc/dll_mpir_gc.vcxproj dest=$src cat $src | grep -v RuntimeLibrary | sed 's/^\(.*\)NDEBUG\(.*\)$/\1NDEBUG\2\ MultiThreadedDLL<\/RuntimeLibrary>/g' | sed 's/v[[:digit:]]\{3\}/v143/g' | sed 's/^\(.*\)_DEBUG\(.*\)$/\1_DEBUG\2\ MultiThreadedDebugDLL<\/RuntimeLibrary>/g' > tempx unix2dos tempx mv -v tempx $dest src=mpir/msvc/vs22/lib_mpir_cxx/lib_mpir_cxx.vcxproj dest=$src cat $src | grep -v RuntimeLibrary | sed 's/^\(.*\)NDEBUG\(.*\)$/\1NDEBUG\2\ MultiThreadedDLL<\/RuntimeLibrary>/g' | sed 's/v[[:digit:]]\{3\}/v143/g' | sed 's/^\(.*\)_DEBUG\(.*\)$/\1_DEBUG\2\ MultiThreadedDebugDLL<\/RuntimeLibrary>/g' > tempx unix2dos tempx mv -v tempx $dest src=$wxwin/include/wx/msw/setup.h cat $src | sed 's/^#define\([[:blank:]]\+\)wxUSE_IPV6\([[:blank:]]\+\).*$/#define\1wxUSE_IPV6\21/g'| sed 's/^#define\([[:blank:]]\+\)WXWIN_COMPATIBILITY_3_0\([[:blank:]]\+\).*$/#define\1WXWIN_COMPATIBILITY_3_0\20/g'| sed 's/^#define\([[:blank:]]\+\)wxUSE_COMPILER_TLS\([[:blank:]]\+\).*$/#define\1wxUSE_COMPILER_TLS\22/g'| sed 's/^#define\([[:blank:]]\+\)wxUSE_STD_CONTAINERS\([[:blank:]]\+\).*$/#define\1wxUSE_STD_CONTAINERS\21/g'| sed 's/^#define\([[:blank:]]\+\)wxUSE_DIALUP_MANAGER\([[:blank:]]\+\).*$/#define\1wxUSE_DIALUP_MANAGER\20/g'| sed 's/^#define\([[:blank:]]\+\)WXWIN_COMPATIBILITY_3_0\([[:blank:]]\+\).*$/#define\1WXWIN_COMPATIBILITY_3_0\20/g'| sed 's/^#define\([[:blank:]]\+\)wxUSE_STD_STRING_CONV_IN_WXSTRING\([[:blank:]]\+\).*$/#define\1wxUSE_STD_STRING_CONV_IN_WXSTRING\21/g'> tempx mv tempx $src docs/mkdocs.sh