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

Unified Diff: common.sh

Issue 3010045: Check for system shflags (Closed) Base URL: http://src.chromium.org/git/crosutils
Patch Set: Created 10 years, 5 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: common.sh
diff --git a/common.sh b/common.sh
index 5258c1a6f854ddb00d2ffe5ebc0a60154cf61da8..32df7d1a84471779e8b4bb496d8eb290d26586d5 100644
--- a/common.sh
+++ b/common.sh
@@ -75,7 +75,11 @@ then
fi
# Load shflags
-. "${SRC_ROOT}/scripts/lib/shflags/shflags"
+if [[ -f /usr/lib/shflags ]]; then
+ . /usr/lib/shflags
+else
+ . "${SRC_ROOT}/scripts/lib/shflags/shflags"
+fi
# Our local mirror
DEFAULT_CHROMEOS_SERVER=${CHROMEOS_SERVER:-"http://build.chromium.org/mirror"}
« 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