X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fclam%2Fcpp%2Fget_version.sh;h=50b9c70b1910a28d0b25cda2bf71d4824abe5c43;hb=26cc4f3ade8271bd0941c587d4ac21219bac2542;hp=f1a8df506283a0b59d89736771430014dea9572e;hpb=4d64e457d451140d83b8801204af71117028c74c;p=feisty_meow.git diff --git a/scripts/clam/cpp/get_version.sh b/scripts/clam/cpp/get_version.sh index f1a8df50..50b9c70b 100755 --- a/scripts/clam/cpp/get_version.sh +++ b/scripts/clam/cpp/get_version.sh @@ -8,11 +8,14 @@ if [ "$COMPILER" = "GNU_LINUX" \ # older code is needed for some versions of gcc / suse. ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/') - if [ ! -d "/usr/include/c++/$ver_found" ]; then - # newest code takes only first two version numbers, since that's how - # suse 11.0 at least is listing the includes. - ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/' | sed -e 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1.\2/') - fi +# if [ ! -d "/usr/include/c++/$ver_found" ]; then +# -a ! -d "/usr/include/c++/$ver_found" ]; then + +# # newest code takes only first two version numbers, since that's how +# # suse 11.0 at least is listing the includes. +# ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/' | sed -e 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1.\2/') + +# fi echo "$ver_found"