| Index: scripts/common.sh
|
| ===================================================================
|
| --- scripts/common.sh (revision 122817)
|
| +++ scripts/common.sh (working copy)
|
| @@ -15,6 +15,10 @@
|
| uname -r | grep 10\.[0-9]\.[0-9] >/dev/null
|
| }
|
|
|
| +system_is_lion() {
|
| + uname -r | grep 11\.[0-9]\.[0-9] >/dev/null
|
| +}
|
| +
|
| checkout_and_patch_valgrind_variant() {
|
| # $1 = Valgrind-variant revision
|
| # $2 = source dir
|
| @@ -158,12 +162,25 @@
|
| elif system_is_snow_leopard
|
| then
|
| build_valgrind "mac_10.6" "--build=amd64-darwin"
|
| + elif system_is_lion
|
| + then
|
| + build_valgrind "mac_10.7"
|
| else
|
| - echo "You have Darwin kernel different from 9.X.X or 10.X.X" >&2
|
| + 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
|
| build_valgrind "local"
|
| fi
|
| ;;
|
| + "Darwin x86_64")
|
| + if system_is_lion
|
| + then
|
| + build_valgrind "mac_10.7"
|
| + else
|
| + echo "You have Darwin kernel different from 11.X.X" >&2
|
| + echo "Please, don't put the resulting binaries into Chromium SVN" >&2
|
| + build_valgrind "local"
|
| + fi
|
| + ;;
|
| *)
|
| build_valgrind "local"
|
| ;;
|
|
|