From 66f3b530f35b5f3d153613f202ef6c1bf4eec25a Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Mon, 18 Nov 2024 21:32:08 +0100 Subject: [PATCH] BUILD: Human readable error if protocol.h not found. --- build-linux.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-linux.sh b/build-linux.sh index 3e2ef968f..8c3bee11b 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -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"