Skip to content

Commit

Permalink
BUILD: Human readable error if protocol.h not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Nov 18, 2024
1 parent 49f9089 commit 66f3b53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ if [ -d ".git" ]; then
git submodule update --init --recursive >> $BUILD_LOG 2>&1 || error "Failed to checkout git submodules. Exiting."
fi

if [ ! -f src/qwprot/src/protocol.h ]; then
error "Bad source code directory, not a git repository, and lacks src/qwprot/src/protocol.h." \
"Download an official source release or checkout the official git repository."
fi

step "Configure build..."
if command -v ninja >/dev/null 2>&1; then
GENERATOR="-G Ninja"
Expand Down

0 comments on commit 66f3b53

Please sign in to comment.