fate: allow overriding default build and install dirs
authorMans Rullgard <mans@mansr.com>
Fri, 20 May 2011 11:06:51 +0000 (12:06 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 20 May 2011 12:50:52 +0000 (13:50 +0100)
This is useful e.g. for building in a different filesystem than
where the source is kept.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tests/fate.sh

index 6f0e0ff..c522269 100755 (executable)
@@ -91,8 +91,8 @@ lock ${workdir}     || die "${workdir} locked"
 cd ${workdir}       || die "cd ${workdir} failed"
 
 src=${workdir}/src
-build=${workdir}/build
-inst=${workdir}/install
+: ${build:=${workdir}/build}
+: ${inst:=${workdir}/install}
 
 test -d "$src" && update || checkout || die "Error fetching source"