build-aux: detect build dir based on build.ninja

.ninja.log is only present after building (successful or otherwise) the
project, but build.ninja is output as soon as the build dir is setup.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2019-06-29 12:58:28 -04:00 committed by Allan McRae
parent 72dae345e4
commit 0318e84546

View File

@ -1,7 +1,7 @@
#!/bin/bash
find_build_directory() {
local build_dirs=(*/.ninja_log)
local build_dirs=(*/build.ninja)
if [[ ! -e ${build_dirs[0]} ]]; then
echo "error: No build directory found. Have you run 'meson build' yet?" >&2