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

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

Issue 144243004: Fix cr-bash-helpers for Mac w/ Homebrew, which doesn't have realpath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | no next file » | 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 f80377156edab8212fa7956fccf615ce70f8a954..66a2de6c1752ea1f2b999aa64cb9744ac77f9472 100755
--- a/tools/cr/cr-bash-helpers.sh
+++ b/tools/cr/cr-bash-helpers.sh
@@ -14,8 +14,12 @@ if [[ -n "$BASH_VERSION" && "${BASH_SOURCE:-$0}" == "$0" ]]; then
exit 1
fi
+READLINK_e="readlink -e"
+if [[ -x `which greadlink` ]]; then
+ READLINK_e="greadlink -e"
bulach 2014/02/04 05:51:25 nit: unindent (as 13-14 above)
Jeffrey Yasskin 2014/02/04 06:59:03 Oops, fixed.
+fi
-cr_base_dir=$(dirname $(realpath "${BASH_SOURCE:-$0}"))
+cr_base_dir=$(dirname $($READLINK_e "${BASH_SOURCE:-$0}"))
cr_main="${cr_base_dir}/main.py"
cr_exec=("PYTHONDONTWRITEBYTECODE=1" "python" "${cr_main}")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698