From 56de1dd85297862066f67b2a4b32ec89b4786434 Mon Sep 17 00:00:00 2001 From: Anush Elangovan Date: Mon, 2 Aug 2010 23:56:07 -0700 Subject: [PATCH] Check for system shflags This change checks for and sources shflags from /usr/lib before depending on the gclient-style path. TEST=None BUG=4230 Review URL: http://codereview.chromium.org/3010045 Change-Id: I3085c2356c40c691a2a72bf79c1d9167162d6dca --- common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.sh b/common.sh index 5258c1a6f8..32df7d1a84 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"}