From c9911aa227736faf8a787a6cc99fb4fbd659966e Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Sun, 29 Jan 2023 20:35:59 -0500 Subject: Consolidate path variables --- mingw-w64-build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mingw-w64-build b/mingw-w64-build index cc0f6f5..3bf1e5b 100755 --- a/mingw-w64-build +++ b/mingw-w64-build @@ -372,12 +372,6 @@ while :; do shift done -SRC_PATH="$ROOT_PATH/src" -BLD_PATH="$ROOT_PATH/bld" -LOG_FILE="$ROOT_PATH/build.log" -I686_PREFIX="$ROOT_PATH/i686" -X86_64_PREFIX="$ROOT_PATH/x86_64" - if [ ! "$BUILD_I686" ] && [ ! "$BUILD_X86_64" ]; then arg_error "no ARCH was specified" fi @@ -417,9 +411,16 @@ fi TOTAL_STEPS=$((TOTAL_STEPS + THREADS_STEPS + BUILD_STEPS)) +SRC_PATH="$ROOT_PATH/src" +BLD_PATH="$ROOT_PATH/bld" +LOG_FILE="$ROOT_PATH/build.log" + if [ "$PREFIX" ]; then I686_PREFIX="$PREFIX" X86_64_PREFIX="$PREFIX" +else + I686_PREFIX="$ROOT_PATH/i686" + X86_64_PREFIX="$ROOT_PATH/x86_64" fi CURRENT_STEP=1 -- cgit v1.2.3