[pacman-dev] [PATCH 4/4] build-aux: detect build dir based on build.ninja

Dave Reisner dreisner at archlinux.org
Sat Jun 29 16:58:28 UTC 2019


.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.
---
 build-aux/update-po | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/update-po b/build-aux/update-po
index ce1ad4be..bf8d7cfc 100755
--- a/build-aux/update-po
+++ b/build-aux/update-po
@@ -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
-- 
2.22.0


More information about the pacman-dev mailing list