mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
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
10 lines
357 B
Bash
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}" "$@"
|