summaryrefslogtreecommitdiffstats
path: root/packaging/windows/win-build-dir.sh
blob: 035ab7d9ff614847065ad69a29b1442a2d1eb763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

if [ -n "${BUILD_DIR}" ]; then
    build="$(cygpath -u "${BUILD_DIR}")"
elif [ -n "${OSTYPE}" ]; then
    if [ -n "${MSYSTEM}" ]; then
        build="${REPO_ROOT}/build-${OSTYPE}-${MSYSTEM}"
    else
        build="${REPO_ROOT}/build-${OSTYPE}"
    fi
elif [ "$USER" = "vk" ]; then
    build="${REPO_ROOT}/build"
else
    # shellcheck disable=SC2034
    build="${REPO_ROOT}/build"
fi