]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-native-msys2: Abort if run in an "MSYS2 MSYS" shell.
authorUwe Hermann <redacted>
Sat, 10 Feb 2018 17:46:32 +0000 (18:46 +0100)
committerUwe Hermann <redacted>
Sat, 10 Feb 2018 17:46:32 +0000 (18:46 +0100)
cross-compile/msys2/sigrok-native-msys2

index 3084bcb9e0ef0c5d66664dca3d3848aa5dd7a7a9..26f8b1467b51d81d3e9f68051f2f46ab28d8d904 100755 (executable)
@@ -42,6 +42,13 @@ DEBUG=0
 
 # -----------------------------------------------------------------------------
 
+# Abort if the user runs the script in an "MSYS2 MSYS" shell.
+if [ $MSYSTEM = "MSYS2" ]; then
+       echo "Building in an 'MSYS2 MSYS' shell will not work, aborting."
+       echo "Please use the 'MSYS2 MinGW 64-bit' (or 32-bit) shell."
+       exit
+fi
+
 # The build target type: "i686" (32bit) or "x86_64" (64bit).
 # This is selected based on which MSYS2 shell is being used to do the build.
 TARGET=$MSYSTEM_CARCH