X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fclam%2Fcpp%2Fget_version.sh;h=4ca187fb78e514a01109052a1e0e22bc7480616e;hb=239fe2ca67e905f1c752394857038330fddd6ff4;hp=50b9c70b1910a28d0b25cda2bf71d4824abe5c43;hpb=421efb66ead03244830a9b4c0ff5cbd8f787dcfc;p=feisty_meow.git diff --git a/scripts/clam/cpp/get_version.sh b/scripts/clam/cpp/get_version.sh index 50b9c70b..4ca187fb 100644 --- a/scripts/clam/cpp/get_version.sh +++ b/scripts/clam/cpp/get_version.sh @@ -2,7 +2,8 @@ COMPILER=$1 COMPILER_ROOT_DIR=$2 if [ "$COMPILER" = "GNU_LINUX" \ - -o "$COMPILER" = "GNU_DARWIN" ]; then + -o "$COMPILER" = "GNU_DARWIN" \ + -o "$COMPILER" = "GNU_WINDOWS" ]; then # compiler version report for the gnu compiler on linux and darwin. # older code is needed for some versions of gcc / suse. @@ -22,15 +23,15 @@ if [ "$COMPILER" = "GNU_LINUX" \ elif [ "$COMPILER" = "GNU_ARM_LINUX" ]; then # compiler version report for the gnu compiler on the arm processor. gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/' -elif [ "$COMPILER" = "VISUAL_CPP" ]; then - # compiler version report for ms visual studio. - ver_raw=`$COMPILER_ROOT_DIR/bin/cl 2>&1 | head -1 | sed -e 's/.*Version \([0-9][0-9]*\)\..*$/\1/'` - if [ "$ver_raw" = "12" ]; then echo 6; - elif [ "$ver_raw" = "13" ]; then echo 7; - elif [ "$ver_raw" = "14" ]; then echo 8; - elif [ "$ver_raw" = "15" ]; then echo 9; - elif [ "$ver_raw" = "16" ]; then echo 10; - fi +#elif [ "$COMPILER" = "VISUAL_CPP" ]; then +# # compiler version report for ms visual studio. +# ver_raw=`$COMPILER_ROOT_DIR/bin/cl 2>&1 | head -1 | sed -e 's/.*Version \([0-9][0-9]*\)\..*$/\1/'` +# if [ "$ver_raw" = "12" ]; then echo 6; +# elif [ "$ver_raw" = "13" ]; then echo 7; +# elif [ "$ver_raw" = "14" ]; then echo 8; +# elif [ "$ver_raw" = "15" ]; then echo 9; +# elif [ "$ver_raw" = "16" ]; then echo 10; +# fi else echo "0" fi