From 07587c61c43b85bed9511abd747575f7991734dc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 1 Jun 2022 09:39:10 +0200 Subject: [PATCH] build: pass filenames to check.sh This ensures in `make check` that $(unstable_protocols) is not broken. --- .build.yml | 2 +- Makefile | 4 ++-- check.sh | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.build.yml b/.build.yml index 99eceeb..7cd424f 100644 --- a/.build.yml +++ b/.build.yml @@ -6,4 +6,4 @@ sources: tasks: - protocols: | cd wlr-protocols - ./check.sh + make check diff --git a/Makefile b/Makefile index 272dc34..ea4ae95 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ unstable_protocols = \ unstable/wlr-output-power-management-unstable-v1.xml \ unstable/wlr-screencopy-unstable-v1.xml -check: - ./check.sh +check: $(unstable_protocols) + ./check.sh $(unstable_protocols) clean: rm -f wlr-protocols.pc diff --git a/check.sh b/check.sh index 33fa26d..f0f0bdd 100755 --- a/check.sh +++ b/check.sh @@ -1,7 +1,8 @@ -#!/bin/sh -eux +#!/bin/sh -eu -for f in $(echo unstable/*.xml) +for f in "$@" do + echo >&2 "Checking $f" wayland-scanner -s client-header "$f" /dev/null wayland-scanner -s server-header "$f" /dev/null wayland-scanner -s public-code "$f" /dev/null