From 09543fb63f718726cdb8d4d9a6877d3ada6d9899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Tue, 20 Oct 2026 20:24:04 +0200 Subject: [PATCH] build: Sync wrappers with releng --- Makefile | 4 ++-- configure | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8774db7..138b1c7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PYTHON ?= $(shell which python3 >/dev/null && echo python3 || echo python) +PYTHON ?= $(shell command -v python3 >/dev/null && echo python3 || echo python) all $(MAKECMDGOALS): @$(PYTHON) \ @@ -8,7 +8,7 @@ all $(MAKECMDGOALS): $(MAKECMDGOALS) git-submodules: - @if [ ! -f releng/meson/meson.py ]; then \ + @if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then \ git submodule update --init --recursive --depth 1; \ fi -include git-submodules diff --git a/configure b/configure index a4d189a..12b51a2 100755 --- a/configure +++ b/configure @@ -1,12 +1,12 @@ #!/bin/sh -[ -z "$PYTHON" ] && PYTHON=$(which python3 >/dev/null && echo python3 || echo python) +[ -z "$PYTHON" ] && PYTHON=$(command -v python3 >/dev/null && echo python3 || echo python) cd $(dirname $0) srcroot=$(pwd) -if [ ! -f releng/meson/meson.py ]; then +if [ ! -f releng/meson/meson.py ] || git submodule status 2>/dev/null | grep -q '^-'; then git submodule update --init --recursive --depth 1 || exit $? fi