Skip to content

Commit

Permalink
Shorten build folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower committed Nov 25, 2023
1 parent f3b4085 commit ae39924
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/msys2_build_32_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ QT_ROOT_DIR="${HOME}/qt"
ROOT_DIR="${HOME}"
SOURCE_DIR="${REPO_OWNER}/${REPO_NAME}"

OUTPUT_DIR_PREFIX="build-output"
OUTPUT_TARGET_PLACEHOLDER="-<target>"
OUTPUT_DIR_PREFIX="build-"
OUTPUT_TARGET_PLACEHOLDER="<target>"
OUTPUT_DIR="${SOURCE_DIR}"
OUTPUT_APPEND_TARGET=1
OUTPUT_DELETE=0
Expand Down Expand Up @@ -178,7 +178,11 @@ function build_output_path() {
# 1 - Target

outpath="${ROOT_DIR}/${OUTPUT_DIR}/${OUTPUT_DIR_PREFIX}"
if [[ $OUTPUT_APPEND_TARGET -eq 1 ]]; then outpath+="-${1}"; fi
if [[ $OUTPUT_APPEND_TARGET -eq 1 ]]; then
outpath+="${1}";
else
outpath+="output";
fi
echo ${outpath}
}

Expand Down Expand Up @@ -367,6 +371,8 @@ OUTPUT_PATH="${ROOT_DIR}/${OUTPUT_DIR}/${OUTPUT_DIR_PREFIX}"

if [[ $OUTPUT_APPEND_TARGET -eq 1 ]]; then
OUTPUT_PATH+="${OUTPUT_TARGET_PLACEHOLDER}"
else
OUTPUT_PATH+="output"
fi

validate_edgetx_version
Expand Down

0 comments on commit ae39924

Please sign in to comment.