Roll new valgrind-variant (r138, which is Valgrind r13132, VEX r2564) binaries for Linux

TBR=timurrrr
Review URL: https://codereview.chromium.org/11299158

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/valgrind/scripts@169324 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/build-memcheck-for-chromium.sh b/build-memcheck-for-chromium.sh
index 68bd51a..6def95a 100755
--- a/build-memcheck-for-chromium.sh
+++ b/build-memcheck-for-chromium.sh
@@ -9,7 +9,7 @@
 source $THISDIR/common.sh
 
 # Use a fixed version of valgrind-variant.
-MEMCHECK_VV_REV=136
+MEMCHECK_VV_REV=138
 
 VG_MEMCHECK_DIR="$VG_SRC_DIR/valgrind-memcheck"
 checkout_and_patch_valgrind_variant "$MEMCHECK_VV_REV" "$VG_MEMCHECK_DIR"
diff --git a/common.sh b/common.sh
index 7a69f56..f1f2149 100755
--- a/common.sh
+++ b/common.sh
@@ -19,6 +19,10 @@
   uname -r | grep 11\.[0-9]\.[0-9] >/dev/null
 }
 
+system_is_mountain_lion() {
+  uname -r | grep 12\.[0-9]\.[0-9] >/dev/null
+}
+
 checkout_and_patch_valgrind_variant() {
   # $1 = Valgrind-variant revision
   # $2 = source dir
@@ -165,6 +169,9 @@
       elif system_is_lion
       then
         build_valgrind "mac_10.7"
+      elif system_is_mountain_lion
+      then
+        build_valgrind "mac_10.7"
       else
         echo "You have Darwin kernel different from 9.X.X--11.X.X" >&2
         echo "Please, don't put the resulting binaries into Chromium SVN" >&2