You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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}" "$@"
|