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

Unified Diff: third_party/closure_compiler/run_compiler

Issue 2318893002: Make third_party/closure_compiler/run_compiler more directory-agnostic (Closed)
Patch Set: Created 4 years, 3 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: third_party/closure_compiler/run_compiler
diff --git a/third_party/closure_compiler/run_compiler b/third_party/closure_compiler/run_compiler
index 884c41551c4f6a4583d86eeef1475b41c626af1c..eba042fed73a0be14b01a784fd768ee3453ac955 100755
--- a/third_party/closure_compiler/run_compiler
+++ b/third_party/closure_compiler/run_compiler
@@ -5,7 +5,8 @@
set -e
-cd $(dirname "$0")/../..
+readonly SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
+cd "$SCRIPT_DIR/../.." # src/.
export GYP_GENERATORS="ninja"
« 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