Commit 905175b7 authored by bradnelson@google.com's avatar bradnelson@google.com

Updating hammer script based on review suggestions.

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/165495

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@23440 0039d316-1c4b-4281-b951-d872f2087c98
parent 34526def
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
# Explicitly skip site_scons directories that are from the 'software # Explicitly skip site_scons directories that are from the 'software
# construction toolkit', since these are not gyp compatible. # construction toolkit', since these are not gyp compatible.
SRC_DIR=`pwd` SRC_DIR=`pwd`
while `test ! -d "${SRC_DIR}/site_scons" -o \ while [ ! -d "${SRC_DIR}/site_scons" ] || \
-e "${SRC_DIR}/site_scons/site_tools/component_setup.py"`; do [ -e "${SRC_DIR}/site_scons/site_tools/component_setup.py" ]; do
PARENT_DIR="$(dirname ${SRC_DIR})" PARENT_DIR="$(dirname "${SRC_DIR}")"
if `test "${SRC_DIR}" = "${PARENT_DIR}"`; then if [ "${SRC_DIR}" = "${PARENT_DIR}" ]; then
echo "ERROR: hammer must be run in a directory with site_scons under" >&2 echo "ERROR: hammer must be run in a directory with site_scons under" >&2
echo " the root of the project tree." >&2 echo " the root of the project tree." >&2
exit 1 exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment