Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
export LC_ALL=C | export LC_ALL=C | ||||
set -eu | set -euxo pipefail | ||||
TOPLEVEL=$(git rev-parse --show-toplevel) | TOPLEVEL=$(git rev-parse --show-toplevel) | ||||
if [[ -z "${TOPLEVEL}" ]]; then | if [[ -z "${TOPLEVEL}" ]]; then | ||||
echo "No .git directory found, assuming pwd" | echo "No .git directory found, assuming pwd" | ||||
TOPLEVEL=$(pwd -P) | TOPLEVEL=$(pwd -P) | ||||
fi | fi | ||||
BUILD_DIR="${TOPLEVEL}/build" | BUILD_DIR="${TOPLEVEL}/build" | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |