Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: tools/cr/cr-bash-helpers.sh

Issue 898683003: cr: Add support for mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/cr/cr/base/mac.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr-bash-helpers.sh
diff --git a/tools/cr/cr-bash-helpers.sh b/tools/cr/cr-bash-helpers.sh
index e7e7593df2fb4b53496d3a774c270253257f2553..3fa6a8aa93b3089aff48ff51c14425aeac896ded 100755
--- a/tools/cr/cr-bash-helpers.sh
+++ b/tools/cr/cr-bash-helpers.sh
@@ -19,7 +19,12 @@ if [[ -x `which greadlink` ]]; then
READLINK_e=("greadlink" "-e")
fi
-cr_base_dir=$(dirname $(${READLINK_e[@]} "${BASH_SOURCE:-$0}"))
+if [[ $(uname) == "Darwin" ]]; then
+ cr_base_dir=$(dirname "${BASH_SOURCE:-$0}")
+else
+ cr_base_dir=$(dirname $(${READLINK_e[@]} "${BASH_SOURCE:-$0}"))
+fi
+
cr_main="${cr_base_dir}/main.py"
cr_exec=("PYTHONDONTWRITEBYTECODE=1" "python" "${cr_main}")
« no previous file with comments | « no previous file | tools/cr/cr/base/mac.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698