From: Mark Wooding Date: Sun, 10 May 2020 13:59:14 +0000 (+0100) Subject: bin/mdw-build: Delay official `assign' for `$toppath' and `$releasepath'. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/c3a2e2b16ef44f51ff9cb9e96230ec1b49ed2372 bin/mdw-build: Delay official `assign' for `$toppath' and `$releasepath'. ... until after we've established the logfile. Otherwise it won't capture these things. --- diff --git a/bin/mdw-build b/bin/mdw-build index 10557a8..fb98ffa 100755 --- a/bin/mdw-build +++ b/bin/mdw-build @@ -253,7 +253,7 @@ while [ ! -f configure.ac -a ! -f configure.in -a \ esac cd .. done -assign toppath $(pwd) +toppath=$(pwd) ## Build any necessary qualifiers. qual= sep=. @@ -263,7 +263,7 @@ case ${SBOX_SESSION_DIR+t},${DEB_BUILD_ARCH+t} in esac ## Construct the output directory. -assign releasepath $toppath/dist-$build$qual +releasepath=$toppath/dist-$build$qual chmod -R +w $releasepath 2>/dev/null || : rm -rf $releasepath 2>/dev/null || : mkdir $releasepath @@ -275,6 +275,10 @@ case $verbose in ;; esac +## Repeat the earlier assignments for tbe benefit of the logfile. +assign toppath $toppath +assign releasepath $releasepath + ## Do we have a Git repository? case "$checkout,$setup,$(yesno [ -d $toppath/.git ])" in yes,no,*)