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

Unified Diff: hammer

Issue 165495: Updating hammer script based on review suggestions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 4 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: hammer
===================================================================
--- hammer (revision 23335)
+++ hammer (working copy)
@@ -11,10 +11,10 @@
# Explicitly skip site_scons directories that are from the 'software
# construction toolkit', since these are not gyp compatible.
SRC_DIR=`pwd`
-while `test ! -d "${SRC_DIR}/site_scons" -o \
- -e "${SRC_DIR}/site_scons/site_tools/component_setup.py"`; do
- PARENT_DIR="$(dirname ${SRC_DIR})"
- if `test "${SRC_DIR}" = "${PARENT_DIR}"`; then
+while [ ! -d "${SRC_DIR}/site_scons" ] || \
+ [ -e "${SRC_DIR}/site_scons/site_tools/component_setup.py" ]; do
+ PARENT_DIR="$(dirname "${SRC_DIR}")"
+ if [ "${SRC_DIR}" = "${PARENT_DIR}" ]; then
echo "ERROR: hammer must be run in a directory with site_scons under" >&2
echo " the root of the project tree." >&2
exit 1
« 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