Squashed 'third_party/eigen/' changes from 61d72f6..cf794d3


Change-Id: I9b814151b01f49af6337a8605d0c42a3a1ed4c72
git-subtree-dir: third_party/eigen
git-subtree-split: cf794d3b741a6278df169e58461f8529f43bce5d
diff --git a/scripts/buildtests.in b/scripts/buildtests.in
index 7026373..526d5b7 100755
--- a/scripts/buildtests.in
+++ b/scripts/buildtests.in
@@ -2,7 +2,7 @@
 
 if [[ $# != 1 || $1 == *help ]]
 then
-  echo "usage: ./check regexp"
+  echo "usage: $0 regexp"
   echo "  Builds tests matching the regexp."
   echo "  The EIGEN_MAKE_ARGS environment variable allows to pass args to 'make'."
   echo "    For example, to launch 5 concurrent builds, use EIGEN_MAKE_ARGS='-j5'"
@@ -14,9 +14,9 @@
 
 if [ -n "${EIGEN_MAKE_ARGS:+x}" ]
 then
-  make $targets_to_make ${EIGEN_MAKE_ARGS}
+  @CMAKE_MAKE_PROGRAM@ $targets_to_make ${EIGEN_MAKE_ARGS}
 else
-  make $targets_to_make
+  @CMAKE_MAKE_PROGRAM@ $targets_to_make @EIGEN_TEST_BUILD_FLAGS@
 fi
 exit $?
 
diff --git a/scripts/check.in b/scripts/check.in
index a90061a..7717e2d 100755
--- a/scripts/check.in
+++ b/scripts/check.in
@@ -3,7 +3,7 @@
 
 if [[ $# != 1 || $1 == *help ]]
 then
-  echo "usage: ./check regexp"
+  echo "usage: $0 regexp"
   echo "  Builds and runs tests matching the regexp."
   echo "  The EIGEN_MAKE_ARGS environment variable allows to pass args to 'make'."
   echo "    For example, to launch 5 concurrent builds, use EIGEN_MAKE_ARGS='-j5'"
diff --git a/scripts/eigen_gen_docs b/scripts/eigen_gen_docs
index 0e6f9ad..787dcb3 100644
--- a/scripts/eigen_gen_docs
+++ b/scripts/eigen_gen_docs
@@ -4,7 +4,7 @@
 # You should call this script with USER set as you want, else some default
 # will be used
 USER=${USER:-'orzel'}
-UPLOAD_DIR=dox
+UPLOAD_DIR=dox-devel
 
 #ulimit -v 1024000