normalized perms on all files, to avoid relying on any stored executable bits in...
[feisty_meow.git] / scripts / clam / cpp / get_version.sh
old mode 100755 (executable)
new mode 100644 (file)
index f1a8df5..50b9c70
@@ -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"