chiark / gitweb /
bin/mdw-build: Initialize qualifier earlier.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 2 Jul 2024 13:31:19 +0000 (14:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 2 Jul 2024 13:31:19 +0000 (14:31 +0100)
bin/mdw-build

index c9bcc7f704ce25aba64f79c7e0653ff025a2084d..fe336461938ed4637f5295c2bf9009139e90305a 100755 (executable)
@@ -119,6 +119,9 @@ Build options:
 EOF
 }
 
+## Initialize qualifiers.
+qual= qualsep=.
+
 ## Parse simple options.
 verbose=no
 while getopts "hv" opt; do
@@ -268,8 +271,7 @@ while [ ! -f configure.ac -a ! -f configure.in -a \
 done
 toppath=$(pwd)
 
-## Build any necessary qualifiers.
-qual= qualsep=.
+## Add a qualifier for Scratchbox builds.
 case ${SBOX_SESSION_DIR+t},${DEB_BUILD_ARCH+t} in
   t,t) qual=$qual$qualsep$DEB_BUILD_ARCH; qualsep=- ;;
   t,*) fail "unknown build arch" ;;