Allow compilation in an other directory on unix, keeping the source tree
clean, by setting the BUILD_WORK environment variable. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1333 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -22,10 +22,14 @@
|
||||
# Read in the functions we need
|
||||
. build/unix/build_functions
|
||||
|
||||
if [ -z "$BUILD_WORK" ]; then
|
||||
BUILD_WORK=.
|
||||
fi
|
||||
|
||||
# Read in the config settings that affect the build, if present.
|
||||
# Don't reread for every dir when recursing.
|
||||
if [ -e build.vars -a -z "$BUILD_COMMAND" ]; then
|
||||
. ./build.vars
|
||||
if [ -e "$BUILD_WORK/build.vars" -a -z "$BUILD_COMMAND" ]; then
|
||||
. "$BUILD_WORK/build.vars"
|
||||
fi
|
||||
|
||||
# Read in the Makeinfo file for the dir currently being processed
|
||||
|
||||
Reference in New Issue
Block a user