win-build-dir.sh 397 B

12345678910111213141516
  1. #!/bin/bash
  2. if [ -n "${BUILD_DIR}" ]; then
  3. build="$(cygpath -u "${BUILD_DIR}")"
  4. elif [ -n "${OSTYPE}" ]; then
  5. if [ -n "${MSYSTEM}" ]; then
  6. build="${REPO_ROOT}/build-${OSTYPE}-${MSYSTEM}"
  7. else
  8. build="${REPO_ROOT}/build-${OSTYPE}"
  9. fi
  10. elif [ "$USER" = "vk" ]; then
  11. build="${REPO_ROOT}/build"
  12. else
  13. # shellcheck disable=SC2034
  14. build="${REPO_ROOT}/build"
  15. fi