diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-08 17:52:20 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-08 17:52:20 -0500 |
commit | 8e6023cd0d52746070ed629414d54f12864c3338 (patch) | |
tree | 7485a61dcb4ec82f914051f70e26b32c065517ab | |
parent | 4a5aaa340acec46a68145998d25cced805ae22ba (diff) |
tb: support TB_LOCALTEMPDIR=1 to isolate temp files of a build
-rw-r--r-- | tb/tb_phases.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tb/tb_phases.sh b/tb/tb_phases.sh index 39fbace..1472e62 100644 --- a/tb/tb_phases.sh +++ b/tb/tb_phases.sh @@ -11,6 +11,11 @@ canonical_pre_autogen() if [ ! -f autogen.lastrun -o "${tb_KEEP_AUTOGEN}" != "YES" ] ; then copy_autogen_config fi + if [ "${TB_LOCALTEMPDIR}" = "1" ] ; then + rm -fr tempdir + mkdir tempdir + export TMPDIR="$(pwd)/tempdir" + fi fi } |