diff --git a/scripts/setup/setup.sh b/scripts/setup/setup.sh new file mode 100755 index 0000000000000000000000000000000000000000..d98b8a2d6c9a1a6cfae032cb4de1aa22c7febbba --- /dev/null +++ b/scripts/setup/setup.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +source setup_prerequisites.sh diff --git a/scripts/setup/setup_prerequisites.sh b/scripts/setup/setup_prerequisites.sh new file mode 100755 index 0000000000000000000000000000000000000000..84744f9ddcc8f5df6ab3fd91e705f3d36bc1179f --- /dev/null +++ b/scripts/setup/setup_prerequisites.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +## Windows specific +if [ "$OSTYPE" == 'msys' ]; then + + # Check Visual Studio version + if [ -z "$VS80COMNTOOLS" ]; then + if [ -z "$VS90COMNTOOLS" ]; then + if [ -z "VS100COMNTOOLS" ]; then + echo "Error: Visual Studio not found" + else + DEVENV="$VS100COMNTOOLS..\IDE\devenv" + fi + else + DEVENV="$VS90COMNTOOLS..\IDE\devenv" + fi + else + DEVENV="$VS80COMNTOOLS..\IDE\devenv" + fi + + echo "Visual Studio found: $DEVENV" +fi