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:
meep-eep
2004-02-27 14:09:13 +00:00
parent 164e5f3798
commit 2990805c14
9 changed files with 60 additions and 34 deletions
+6 -2
View File
@@ -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