Files
chromium_depot_tools/hammer
maruel@google.com fb2b8eb2e2 Create the Next Generation of depot_tools. Eh.
Review URL: http://codereview.chromium.org/92087

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@14349 0039d316-1c4b-4281-b951-d872f2087c98
2009-04-23 21:03:42 +00:00

10 lines
357 B
Bash

#!/bin/sh
# The first expression catches when we're actually in the /src directory.
# The second expressions strips everything after the last /src occurrence.
SRC_DIR=`pwd | sed -e '\;/src$;q' -e 's;\(.*/src\)/.*;\1;'`
SCONS="${SRC_DIR}/third_party/scons/scons.py"
SITE_SCONS="${SRC_DIR}/site_scons"
exec python "${SCONS}" "--site-dir=${SITE_SCONS}" "$@"